diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-20 09:44:07 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-10-20 09:44:07 +0200 |
commit | 35f7078a420b37a23b065bed327c538eb45dd2af (patch) | |
tree | c9fb74ee20fc8a96fc84018b1352d11dcf2735ec /travis.sh | |
parent | 4188e3483809fd0d5d836f74cf8ee8a46089836e (diff) | |
download | sonarqube-35f7078a420b37a23b065bed327c538eb45dd2af.tar.gz sonarqube-35f7078a420b37a23b065bed327c538eb45dd2af.zip |
Fix analysis of pull requests on Travis
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 7d80c1242bc..31e0c5663de 100755 --- a/travis.sh +++ b/travis.sh @@ -194,7 +194,8 @@ BUILD) -Dsonar.branch.target=$TRAVIS_BRANCH \ -Dsonar.analysis.buildNumber=$TRAVIS_BUILD_NUMBER \ -Dsonar.analysis.pipeline=$TRAVIS_BUILD_NUMBER \ - -Dsonar.analysis.sha1=$TRAVIS_COMMIT \ + -Dsonar.analysis.sha1=$TRAVIS_PULL_REQUEST_SHA \ + -Dsonar.analysis.prNumber=$TRAVIS_PULL_REQUEST \ -Dsonar.analysis.repository=$TRAVIS_REPO_SLUG else echo 'Build feature branch or external pull request' |