Browse Source

Fix iris download in travis build.

The new artifactory version requires to follow redirects.
The option "--location" needs to be set for curl.
tags/8.7.0.41497
Malena Ebert 3 years ago
parent
commit
6531a4e7af
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      .travis/run_iris.sh

+ 8
- 1
.travis/run_iris.sh View File

@@ -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"

Loading…
Cancel
Save