]> source.dussan.org Git - sonarqube.git/commitdiff
Analyze maintenance branches on next.sonarqube.com
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 14 Sep 2017 16:13:22 +0000 (18:13 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 14 Sep 2017 16:13:34 +0000 (18:13 +0200)
travis.sh

index c23854d051a81f87723d384512aa49ff4d910542..34a94dd266326add404e160390841e863bdc3aeb 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_BRANCH
 
   elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
     echo 'Build and analyze internal pull request'