]> source.dussan.org Git - sonarqube.git/commitdiff
Trigger a full analysis for every build number ending with 0, 1 or 2
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Mon, 11 Sep 2017 12:14:48 +0000 (14:14 +0200)
committerTeryk Bellahsene <teryk@users.noreply.github.com>
Mon, 11 Sep 2017 13:16:52 +0000 (15:16 +0200)
travis.sh

index 8a58af81b322ced5b7b127809c869e024900c698..a1031c38f729166adb896e82711c3b8a8e6652a3 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -142,10 +142,9 @@ BUILD)
           $MAVEN_ARGS \
           -Pdeploy-sonarsource,release
         
-    #disabling incremental analysis for the time being    
     INCREMENTAL=true
-    # Triggers a full analysis for every build number ending with 0
-    if [[ "$TRAVIS_BUILD_NUMBER" == *0 ]]; then
+    # Triggers a full analysis for every build number ending with 0, 1 or 2
+    if [[ "$TRAVIS_BUILD_NUMBER" =~ [012]$ ]]; then
       INCREMENTAL=false
     fi