diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-28 14:15:19 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-09-28 14:15:44 +0200 |
commit | 23671f07e659bc316de91aa367434c71c3af3fe6 (patch) | |
tree | 40bfed564620b244360cedc288d28b686dd1389a /travis.sh | |
parent | c563b8daf42fc8e81db08ce8cc5d27d48b2346b5 (diff) | |
download | sonarqube-23671f07e659bc316de91aa367434c71c3af3fe6.tar.gz sonarqube-23671f07e659bc316de91aa367434c71c3af3fe6.zip |
Fix version of analysis in long-lived branches
Diffstat (limited to 'travis.sh')
-rwxr-xr-x | travis.sh | 3 |
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' |