aboutsummaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2017-10-20 09:44:07 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-10-20 09:44:07 +0200
commit35f7078a420b37a23b065bed327c538eb45dd2af (patch)
treec9fb74ee20fc8a96fc84018b1352d11dcf2735ec /travis.sh
parent4188e3483809fd0d5d836f74cf8ee8a46089836e (diff)
downloadsonarqube-35f7078a420b37a23b065bed327c538eb45dd2af.tar.gz
sonarqube-35f7078a420b37a23b065bed327c538eb45dd2af.zip
Fix analysis of pull requests on Travis
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 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'