-
Notifications
You must be signed in to change notification settings - Fork 17
/
archive-nightly
executable file
·38 lines (30 loc) · 1.12 KB
/
archive-nightly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash -x
# Save the build artifacts used by downstream jobs for publishing the nightly build.
# Creates a single file jenkins-artifacts.tgz containing everything
rm -rf jenkins-artifacts jenkins-artifacts.tgz
mkdir jenkins-artifacts
# publish-nightly publishes scaladoc, distribution archives
[[ -d build/scaladoc ]] && {
mkdir -p jenkins-artifacts/build
rsync -rlv build/scaladoc jenkins-artifacts/build/
}
[[ -d dists/archives ]] && {
mkdir -p jenkins-artifacts/dists
rsync -rlv dists/archives jenkins-artifacts/dists/
}
#[[ -d dists/sbaz ]] && {
# mkdir -p jenkins-artifacts/dists
# rsync -rlv dists/sbaz jenkins-artifacts/dists/
#}
# publish-nightly publishes maven artifacts
[[ -d dists/maven ]] && {
mkdir -p jenkins-artifacts/dists
rsync -rlv dists/maven jenkins-artifacts/dists/
}
# scala-nightly-signatures checks signatures of scala-library.jar
[[ -e dists/latest/lib/scala-library.jar ]] && {
mkdir -p jenkins-artifacts/dists/latest/lib
cp dists/latest/lib/scala-library.jar jenkins-artifacts/dists/latest/lib/scala-library.jar
}
tar czf jenkins-artifacts.tgz jenkins-artifacts
rm -rf jenkins-artifacts