aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-28 14:15:19 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-09-28 14:15:44 +0200
commit23671f07e659bc316de91aa367434c71c3af3fe6 (patch)
tree40bfed564620b244360cedc288d28b686dd1389a /travis.sh
parentc563b8daf42fc8e81db08ce8cc5d27d48b2346b5 (diff)
downloadsonarqube-23671f07e659bc316de91aa367434c71c3af3fe6.tar.gz
sonarqube-23671f07e659bc316de91aa367434c71c3af3fe6.zip
Fix version of analysis in long-lived branches
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/travis.sh b/travis.sh
index 34a94dd2663..5a51f3f9dba 100755
--- a/travis.sh
+++ b/travis.sh
@@ -157,7 +157,8 @@ BUILD)
mvn sonar:sonar \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
- -Dsonar.branch.name=$TRAVIS_BRANCH
+ -Dsonar.branch.name=$TRAVIS_BRANCH \
+ -Dsonar.projectVersion=$INITIAL_VERSION
elif [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ -n "${GITHUB_TOKEN:-}" ]; then
echo 'Build and analyze internal pull request'