File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change 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-
3822if [[ -z $publish_to ]]; then
3923 echo " Nothing to publish."
4024else
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) )
5032fi
You can’t perform that action at this time.
0 commit comments