]> source.dussan.org Git - sonarqube.git/commitdiff
No need to change project version on Travis when not SNAPSHOT
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 3 Mar 2017 15:43:43 +0000 (16:43 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 3 Mar 2017 15:43:43 +0000 (16:43 +0100)
travis.sh

index 127377f8fd4ad7e35c2e8a90679992c8f0f867dc..b4299fc8ceb369e151fbbbeb4462d4a4d1878acc 100755 (executable)
--- a/travis.sh
+++ b/travis.sh
@@ -82,12 +82,11 @@ function fixBuildVersion {
   else
     # SNAPSHOT
     export PROJECT_VERSION=$BUILD_VERSION
+    mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -DnewVersion=$PROJECT_VERSION -DgenerateBackupPoms=false -B -e
   fi
 
   echo "Build Version  : $BUILD_VERSION"
   echo "Project Version: $PROJECT_VERSION"
-
-  mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -DnewVersion=$PROJECT_VERSION -DgenerateBackupPoms=false -B -e
 }
 
 #