]> source.dussan.org Git - sonarqube.git/commitdiff
QA: enable deploy on branch-*
authorTom <thomas.verin@sonarsource.com>
Tue, 12 Apr 2016 06:08:35 +0000 (08:08 +0200)
committerTom <thomas.verin@sonarsource.com>
Tue, 12 Apr 2016 06:08:35 +0000 (08:08 +0200)
travis.sh

index 3e5e52d618a3bb5e4a96f1361cf430a3b752510e..18715fa34d2324382912199ef4c33ebe52363dc0 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -28,6 +28,17 @@ CI)
         -Pdeploy-sonarsource \
         -B -e -V
 
+  elif [[ "${TRAVIS_BRANCH}" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
+    strongEcho 'Build and deploy'
+
+    # Do not deploy a SNAPSHOT version but the release version related to this build
+    set_maven_build_version $TRAVIS_BUILD_NUMBER
+
+    # analysis is currently executed by SonarSource internal infrastructure
+    mvn deploy \
+        -Pdeploy-sonarsource \
+        -B -e -V 
+
   elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
     strongEcho 'Build and analyze pull request, no deploy'