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 864B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. set +x
  3. VERSION="\[RELEASE\]"
  4. HTTP_CODE=$(\
  5. curl \
  6. --write-out '%{http_code}' \
  7. --location \
  8. --remote-name \
  9. --user "$ARTIFACTORY_PRIVATE_USERNAME:$ARTIFACTORY_API_KEY" \
  10. "$ARTIFACTORY_URL/sonarsource-private-releases/com/sonarsource/iris/iris/$VERSION/iris-$VERSION-jar-with-dependencies.jar"\
  11. )
  12. if [ "$HTTP_CODE" != "200" ]; then
  13. echo "Download $VERSION failed -> $HTTP_CODE"
  14. exit 1
  15. else
  16. echo "Downloaded $VERSION"
  17. fi
  18. java \
  19. -Diris.source.projectKey=org.sonarsource.sonarqube:sonarqube-private \
  20. -Diris.source.url=https://next.sonarqube.com/sonarqube \
  21. -Diris.source.token=$NEXT_TOKEN \
  22. -Diris.destination.projectKey=sonarqube \
  23. -Diris.destination.url=https://next.sonarqube.com/sonarqube \
  24. -Diris.destination.token=$NEXT_TOKEN \
  25. -Diris.maxcountposts=50 \
  26. -jar iris-\[RELEASE\]-jar-with-dependencies.jar