Skip to content

Commit 6f721b5

Browse files
committed
Moved jenkins build script.
Out of jenkins and into version control.
1 parent e9296ba commit 6f721b5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tools/epfl-build-2.8.x

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)