File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh -e
2
+ #
3
+ # Jenkins should run tools/$0 --publish "$ssh_conn:$nightly_dir"
4
+
5
+ unset rsyncDest
6
+ if [ " $1 " == " --publish" ]; then
7
+ rsyncDest=" $2 "
8
+ fi
9
+
10
+ # should not be hardcoded
11
+ mavenSettings=" /home/linuxsoft/apps/hudson-maven-settings/settings.xml"
12
+
13
+ # main build sequence
14
+ ant all.clean
15
+ ./pull-binary-libs.sh
16
+ ant nightly
17
+ ant docscomp
18
+
19
+ # publish nightly build
20
+ if [ -n " $rsyncDest " ]; then
21
+ echo " Copying nightly build to $rsyncDest "
22
+ # Archive Scala nightly distribution
23
+ # Tailing slash is required, otherwise the directory gets synchronized instead of its content
24
+ rsync -az dists/archives/ " $rsyncDest /distributions"
25
+ # SKIP PUBLISHING DOCS IN 2.8.X BRANCH
26
+ # rsync -az scala/build/scaladoc/ "$rsyncDest/docs"
27
+ rsync -az dists/sbaz/ " $rsyncDest /sbaz"
28
+ # Deploy the maven artifacts on scala-tools.org
29
+ ( cd dists/maven/latest && ant deploy.snapshot -Dsettings.file=" $mavenSettings " )
30
+ fi
You can’t perform that action at this time.
0 commit comments