summaryrefslogtreecommitdiffstats
path: root/travis.sh
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk@users.noreply.github.com>2017-10-10 10:38:54 +0200
committerGitHub <noreply@github.com>2017-10-10 10:38:54 +0200
commit86f02ee075a15b0c727961d7a6d61360a53ae7c1 (patch)
tree77101ef9db963a1e9e5da0cac74dd6ba26493c6d /travis.sh
parent6810d4b43783fe4dcbfd7d2361fe5584f261dc89 (diff)
downloadsonarqube-86f02ee075a15b0c727961d7a6d61360a53ae7c1.tar.gz
sonarqube-86f02ee075a15b0c727961d7a6d61360a53ae7c1.zip
Update to travis-utils 38
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/travis.sh b/travis.sh
index de9924b57d1..c6e5d2bb82d 100755
--- a/travis.sh
+++ b/travis.sh
@@ -105,7 +105,7 @@ function fixBuildVersion {
#
function configureTravis {
mkdir -p ~/.local
- curl -sSL https://github.com/SonarSource/travis-utils/tarball/v36 | tar zx --strip-components 1 -C ~/.local
+ curl -sSL https://github.com/SonarSource/travis-utils/tarball/v38 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
configureTravis
@@ -146,7 +146,11 @@ BUILD)
mvn sonar:sonar \
-Dsonar.host.url=$SONAR_HOST_URL \
-Dsonar.login=$SONAR_TOKEN \
- -Dsonar.projectVersion=$INITIAL_VERSION
+ -Dsonar.projectVersion=$INITIAL_VERSION \
+ -Dsonar.analysis.buildNumber=$TRAVIS_BUILD_NUMBER \
+ -Dsonar.analysis.pipeline=$TRAVIS_BUILD_NUMBER \
+ -Dsonar.analysis.sha1=$TRAVIS_COMMIT \
+ -Dsonar.analysis.repository=$TRAVIS_REPO_SLUG
elif [[ "$TRAVIS_BRANCH" == "branch-"* ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
echo 'Build release branch'