Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from adriaanm/2.11.x
New script layout
- Loading branch information
Showing
5 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|