Skip to content

Commit 2229f69

Browse files
committed
Merge branch 'publish-fix' into 2.8.x
Conflicts: tools/epfl-publish
2 parents 3d17295 + b16cbcd commit 2229f69

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

tools/epfl-publish

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22
#
33
# publishes nightly build if $publish_to is set in environment.
4-
# alternate maven settings.xml file given in $maven_settings.
54
#
65

76
[[ $# -eq 1 ]] || {
@@ -20,31 +19,14 @@ version="$1"
2019
exit 1
2120
}
2221

23-
# should not be hardcoded
24-
# adds -Dsettings.file= if fixed path is present
25-
mavenSettingsOption () {
26-
hardcoded_path="/home/linuxsoft/apps/hudson-maven-settings/settings.xml"
27-
28-
# environment variable
29-
if [[ -n $maven_settings ]]; then
30-
echo -Dsettings.file="$maven_settings"
31-
elif [[ -f $hardcoded_path ]]; then
32-
echo -Dsettings.file="$hardcoded_path"
33-
fi
34-
}
35-
36-
mavenSettings=${maven_settings:-findMavenSettings}
37-
3822
if [[ -z $publish_to ]]; then
3923
echo "Nothing to publish."
4024
else
4125
echo "Publishing nightly build to $publish_to"
4226
# Archive Scala nightly distribution
4327
rsync -az dists/archives/ "$publish_to/distributions"
44-
# don't publish docs in 2.8.x
45-
[[ $version == "2.8.x" ]] || rsync -az build/scaladoc/ "$publish_to/docs"
28+
# only publish scaladoc nightly for trunk
29+
[[ $version == "master" ]] && rsync -az build/scaladoc/ "$publish_to/docs"
4630
# sbaz
4731
[[ -d dists/sbaz ]] && rsync -az dists/sbaz/ "$publish_to/sbaz"
48-
# Deploy the maven artifacts on scala-tools.org
49-
( cd dists/maven/latest && ant deploy.snapshot $(mavenSettingsOption) )
5032
fi

0 commit comments

Comments
 (0)