]> source.dussan.org Git - sonarqube.git/commitdiff
Do not deploy sources on feature branches
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 22 Jul 2016 15:03:43 +0000 (17:03 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 24 Jul 2016 16:35:26 +0000 (18:35 +0200)
travis.sh

index 64e2905b17dc3264afb8ca8f05f153ed1577ed56..b9b5438c9e3ee461d067781b20fbe64f7d50ed33 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -50,6 +50,7 @@ CI)
     echo 'Internal pull request: trigger QA and analysis'
 
     mvn org.jacoco:jacoco-maven-plugin:prepare-agent deploy sonar:sonar \
+        -Dsource.skip=true \
         -Pdeploy-sonarsource \
         -Dmaven.test.redirectTestOutputToFile=false \
         -Dsonar.analysis.mode=issues \
@@ -61,9 +62,10 @@ CI)
         -B -e -V
 
   else
-    echo 'Feature branch or external pull request: no QA, no analysis'
+    echo 'Feature branch or external pull request: no QA, no analysis. Skip sources'
 
     mvn install \
+        -Dsource.skip=true \
         -Dmaven.test.redirectTestOutputToFile=false \
         -B -e -V
   fi