diff options
author | Malena Ebert <malena.ebert@sonarsource.com> | 2021-01-05 09:08:38 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-01-05 20:15:14 +0000 |
commit | 6531a4e7af1cf60150d1e967201dd7453d8b45e5 (patch) | |
tree | 12efff7b9cb186fa11d53af26f0a7b9c5bdda74c /.travis | |
parent | dc980ec9d7aeeae63068fa127198318ba50a2468 (diff) | |
download | sonarqube-6531a4e7af1cf60150d1e967201dd7453d8b45e5.tar.gz sonarqube-6531a4e7af1cf60150d1e967201dd7453d8b45e5.zip |
Fix iris download in travis build.
The new artifactory version requires to follow redirects.
The option "--location" needs to be set for curl.
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/run_iris.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.travis/run_iris.sh b/.travis/run_iris.sh index 638cefc3cd1..9abfc2813a1 100755 --- a/.travis/run_iris.sh +++ b/.travis/run_iris.sh @@ -2,7 +2,14 @@ set +x VERSION="\[RELEASE\]" -HTTP_CODE=`curl --write-out %{http_code} -O --user $ARTIFACTORY_PRIVATE_USERNAME:$ARTIFACTORY_API_KEY $ARTIFACTORY_URL/sonarsource-private-releases/com/sonarsource/iris/iris/$VERSION/iris-$VERSION-jar-with-dependencies.jar` +HTTP_CODE=$(\ + curl \ + --write-out '%{http_code}' \ + --location \ + --remote-name \ + --user "$ARTIFACTORY_PRIVATE_USERNAME:$ARTIFACTORY_API_KEY" \ + "$ARTIFACTORY_URL/sonarsource-private-releases/com/sonarsource/iris/iris/$VERSION/iris-$VERSION-jar-with-dependencies.jar"\ +) if [ "$HTTP_CODE" != "200" ]; then echo "Download $VERSION failed -> $HTTP_CODE" |