Browse Source

BUILD-753 Migrate IRIS task to Travis

tags/8.2.0.32929
Wouter Admiraal 4 years ago
parent
commit
a2c4b0d1ce
2 changed files with 24 additions and 0 deletions
  1. 20
    0
      .travis/run_iris.sh
  2. 4
    0
      travis.sh

+ 20
- 0
.travis/run_iris.sh View File

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

+ 4
- 0
travis.sh View File

@@ -46,6 +46,10 @@ BUILD)
-Dsonar.organization=sonarsource \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login="$SONAR_TOKEN"
# Wait for 5mins, hopefully the report will be processed.
sleep 5m
./.travis/run_iris.sh
fi
;;


Loading…
Cancel
Save