]> source.dussan.org Git - sonarqube.git/commitdiff
[NO JIRA] Analyse SonarQube on NEXT
authorPhilippe Perrin <philippe.perrin@sonarsource.com>
Fri, 25 Feb 2022 14:02:01 +0000 (15:02 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 25 Feb 2022 20:02:43 +0000 (20:02 +0000)
.travis/run_iris.sh
travis.sh

index 0ea8cc7476fee157319e392c15b888923f045cf9..d08dec5648391565bc364ba5ac4262f62c2bc906 100755 (executable)
@@ -18,10 +18,12 @@ else
   echo "Downloaded $VERSION"
 fi
 
-java -Diris.projectKey=org.sonarsource.sonarqube:sonarqube \
+java \
+  -Diris.source.projectKey=org.sonarsource.sonarqube:sonarqube-private \
   -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.destination.projectKey=sonarqube \
+  -Diris.destination.url=https://next.sonarqube.com/sonarqube \
+  -Diris.destination.token=$NEXT_TOKEN \
   -Diris.maxcountposts=50 \
   -jar iris-\[RELEASE\]-jar-with-dependencies.jar
index 2f63ca1b30f7c44404542d7a02403d00e5931a3e..a5eac38793029c4731ab250f3d0144e088b975c6 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -40,19 +40,17 @@ BUILD)
 
   # the '-' at the end is needed when using set -u (the 'nounset' flag)
   # see https://stackoverflow.com/a/9824943/641955
-  if [[ -n "${SONAR_TOKEN-}" ]]; then
+  if [[ -n "${NEXT_TOKEN-}" ]]; then
     if [[ "${TRAVIS_BRANCH}" == "master" ]]; then
       ./gradlew jacocoTestReport sonarqube --info --no-daemon --console plain \
-        -Dsonar.projectKey=org.sonarsource.sonarqube:sonarqube \
-        -Dsonar.organization=sonarsource \
-        -Dsonar.host.url=https://sonarcloud.io \
-        -Dsonar.login="$SONAR_TOKEN"
+        -Dsonar.projectKey=sonarqube \
+        -Dsonar.host.url=https://next.sonarqube.com/sonarqube \
+        -Dsonar.login="$NEXT_TOKEN"
     else
       ./gradlew jacocoTestReport sonarqube --info --no-daemon --console plain \
-        -Dsonar.projectKey=org.sonarsource.sonarqube:sonarqube \
-        -Dsonar.organization=sonarsource \
-        -Dsonar.host.url=https://sonarcloud.io \
-        -Dsonar.login="$SONAR_TOKEN" \
+        -Dsonar.projectKey=sonarqube \
+        -Dsonar.host.url=https://next.sonarqube.com/sonarqube \
+        -Dsonar.login="$NEXT_TOKEN" \
         -Dsonar.branch.name="$TRAVIS_BRANCH"
     fi