aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorDavid Rautureau <david.rautureau@sonarsource.com>2018-03-12 08:43:13 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2018-03-12 09:18:51 +0100
commit6e548f76fc2a4dc6ac4caa27361f0746880c4f1c (patch)
tree903e3963e885285f7a39a589f159f37658f479a3 /build.gradle
parentaf171647123bee800c6aad98410c1faab7a8f522 (diff)
downloadsonarqube-6e548f76fc2a4dc6ac4caa27361f0746880c4f1c.tar.gz
sonarqube-6e548f76fc2a4dc6ac4caa27361f0746880c4f1c.zip
Add missing properties in Artifactory build info
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 53c911ee9da..013f9557bd8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -279,10 +279,13 @@ artifactory {
}
defaults {
properties = [
- 'vcs.revision': System.getenv('GIT_COMMIT'),
- 'vcs.branch': System.getenv('GIT_BRANCH'),
'build.name': 'sonarqube',
- 'build.number': (System.getenv('BUILD_ID') ?: System.getenv('BUILD_NUMBER'))
+ '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'),
+ 'version': version
]
publications('mavenJava')
publishPom = true