diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-02-24 12:32:04 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-02-26 10:41:19 +0100 |
commit | a2c4b0d1ce9c2bc0385d1672609c87903fa2bfb0 (patch) | |
tree | 5e3a3687fac4e771864ad5fc1d8fdce29d6c274f /.travis | |
parent | fe9e0593f10876376d34f4569e953e86cec06110 (diff) | |
download | sonarqube-a2c4b0d1ce9c2bc0385d1672609c87903fa2bfb0.tar.gz sonarqube-a2c4b0d1ce9c2bc0385d1672609c87903fa2bfb0.zip |
BUILD-753 Migrate IRIS task to Travis
Diffstat (limited to '.travis')
-rwxr-xr-x | .travis/run_iris.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.travis/run_iris.sh b/.travis/run_iris.sh new file mode 100755 index 00000000000..638cefc3cd1 --- /dev/null +++ b/.travis/run_iris.sh @@ -0,0 +1,20 @@ +#!/bin/bash +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` + +if [ "$HTTP_CODE" != "200" ]; then + echo "Download $VERSION failed -> $HTTP_CODE" + exit -1 +else + echo "Downloaded $VERSION" +fi + +java -Diris.projectKey=org.sonarsource.sonarqube:sonarqube \ + -Diris.source.url=https://next.sonarqube.com/sonarqube \ + -Diris.source.token=$NEXT_TOKEN \ + -Diris.destination.url=$SONAR_HOST_URL \ + -Diris.destination.token=$SONAR_TOKEN \ + -Diris.maxcountposts=50 \ + -jar iris-[RELEASE]-jar-with-dependencies.jar |