diff options
author | David Rautureau <david.rautureau@sonarsource.com> | 2018-04-05 17:26:28 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-10 20:20:54 +0200 |
commit | f239ffffd3818fec2aa2d74b12875355324df73e (patch) | |
tree | 2d02c2a7f9fd8845f19aa9e58ccc667e01f2f968 /build.gradle | |
parent | f7e38afea9986a8663954dffcfcea74a08d608e0 (diff) | |
download | sonarqube-f239ffffd3818fec2aa2d74b12875355324df73e.tar.gz sonarqube-f239ffffd3818fec2aa2d74b12875355324df73e.zip |
Fix Artifactory properties
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle index 3c6bbe71576..d07385c5338 100644 --- a/build.gradle +++ b/build.gradle @@ -389,10 +389,10 @@ artifactory { properties = [ 'build.name': 'sonar-enterprise', 'build.number': (System.getenv('BUILD_ID') ?: System.getenv('BUILD_NUMBER')), - 'pr.branch.target': System.getenv('PULL_REQUEST_BRANCH_TARGET'), - 'pr.number': System.getenv('PULL_REQUEST_NUMBER'), - 'vcs.branch': System.getenv('GIT_BRANCH'), - 'vcs.revision': System.getenv('GIT_COMMIT'), + 'pr.branch.target': System.getenv('GITHUB_TARGET_BRANCH'), + 'pr.number': System.getenv('PULL_REQUEST'), + 'vcs.branch': System.getenv('GITHUB_BASE_BRANCH') ?: System.getenv('GITHUB_BRANCH'), + 'vcs.revision': System.getenv('GIT_SHA1'), 'version': version ] publications('mavenJava') |