Skip to content

Commit

Permalink
Merge pull request #145 from adriaanm/2.11.x
Browse files Browse the repository at this point in the history
New script layout
  • Loading branch information
adriaanm committed Jan 29, 2015
2 parents 9e2dae3 + 7a5c4ee commit 08127d9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
File renamed without changes.
Expand Up @@ -3,4 +3,4 @@
# to be extra-sure we don't pollute
rm -rf $WORKSPACE/.ivy2

. scripts/scala-release-2.11.x-pkg
. scripts/jobs/release/package/generic
Expand Up @@ -3,4 +3,4 @@
# to be extra-sure we don't pollute
rm -rf "$(/usr/bin/cygpath --unix $WORKSPACE/.ivy2)"

. scripts/scala-release-2.11.x-pkg
. scripts/jobs/release/package/generic
Expand Up @@ -34,6 +34,3 @@ for m in $modules; do
ssh "${sshCharaArgs[@]}" "(set -x; cd $archivesDir && mkdir -p api/$version/$m && unzip \$(find api/$version/jars -name ${m}_'*javadoc.jar' -o -name ${m}-${version}-javadoc.jar) -d api/$version/$m;)"
done

echo "Symlinking api/$version to api/2.11.x."

ssh "${sshCharaArgs[@]}" "cd $archivesDir/api/ ; [[ -d $version ]] && ln -sfn $version 2.11.x"
16 changes: 16 additions & 0 deletions scripts/jobs/release/website/update-api
@@ -0,0 +1,16 @@
#!/bin/bash -ex
# need to re-declare it as an array, not sure how to do that directly in jenkins
declare -a sshCharaArgs="$sshCharaArgs"

if [[ "$version" =~ .*-nightly ]]
then archivesDir="~linuxsoft/archives/scala/nightly/2.11.x"
else archivesDir="~linuxsoft/archives/scala"
fi

echo "Symlinking $archivesDir/api/$version to $archivesDir/api/2.11.x."

ssh "${sshCharaArgs[@]}" "cd $archivesDir/api/ ; [[ -d $version ]] && ln -sfn $version 2.11.x"

# needs to run once on new major release:
# ssh "${sshCharaArgs[@]}" "cd $archivesDir/api/ ; [[ -d $version ]] && ln -sfn 2.11.x current"

0 comments on commit 08127d9

Please sign in to comment.