aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-04-05 17:26:28 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-10 20:20:54 +0200
commitf239ffffd3818fec2aa2d74b12875355324df73e (patch)
tree2d02c2a7f9fd8845f19aa9e58ccc667e01f2f968 /build.gradle
parentf7e38afea9986a8663954dffcfcea74a08d608e0 (diff)
downloadsonarqube-f239ffffd3818fec2aa2d74b12875355324df73e.tar.gz
sonarqube-f239ffffd3818fec2aa2d74b12875355324df73e.zip
Fix Artifactory properties
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle8
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')