Skip to content

New script layout #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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"