From 23671f07e659bc316de91aa367434c71c3af3fe6 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 28 Sep 2017 14:15:19 +0200 Subject: [PATCH] Fix version of analysis in long-lived branches --- travis.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' -- 2.39.5