mirror of
https://github.com/SonarSource/sonarqube.git
synced 2024-09-10 06:36:02 +02:00
21 lines
716 B
Bash
Executable File
21 lines
716 B
Bash
Executable File
#!/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
|