You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_iris.sh 716B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set +x
  3. VERSION="\[RELEASE\]"
  4. 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`
  5. if [ "$HTTP_CODE" != "200" ]; then
  6. echo "Download $VERSION failed -> $HTTP_CODE"
  7. exit -1
  8. else
  9. echo "Downloaded $VERSION"
  10. fi
  11. java -Diris.projectKey=org.sonarsource.sonarqube:sonarqube \
  12. -Diris.source.url=https://next.sonarqube.com/sonarqube \
  13. -Diris.source.token=$NEXT_TOKEN \
  14. -Diris.destination.url=$SONAR_HOST_URL \
  15. -Diris.destination.token=$SONAR_TOKEN \
  16. -Diris.maxcountposts=50 \
  17. -jar iris-[RELEASE]-jar-with-dependencies.jar