]> source.dussan.org Git - sonarqube.git/commitdiff
Analyze maintenance branch as long-living branch on next.sonarqube.com
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 13 Sep 2017 11:53:21 +0000 (13:53 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 13 Sep 2017 11:53:21 +0000 (13:53 +0200)
travis.sh

index 770d50a65bbab365cc5a4db368aae8fb1c779dfd..39e7a20ac3f94e54af34d656ed3d9ebf9626cd5c 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -150,7 +150,14 @@ BUILD)
   elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
     echo 'Build release branch'
 
-    mvn deploy $MAVEN_ARGS -Pdeploy-sonarsource,release
+    mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy \
+        $MAVEN_ARGS \
+        -Pdeploy-sonarsource,release
+
+    mvn sonar:sonar \
+            -Dsonar.host.url=$SONAR_HOST_URL \
+            -Dsonar.login=$SONAR_TOKEN \
+            -Dsonar.branch.name=$TRAVIS_PULL_REQUEST_BRANCH
 
   elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
     echo 'Build and analyze internal pull request'