aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>2023-11-24 09:25:49 +0100
committersonartech <sonartech@sonarsource.com>2023-11-27 20:02:43 +0000
commit41b4679c65e31250875a74a4df77af6380bad66a (patch)
treeb862b014c4bd08566ee99ee55ff35ce2cf3f40d9
parent55b03321e6a362fe6ae01edbd263e8bfc3232246 (diff)
downloadsonarqube-41b4679c65e31250875a74a4df77af6380bad66a.tar.gz
sonarqube-41b4679c65e31250875a74a4df77af6380bad66a.zip
NO-JIRA added branch name to gradle build scans
-rw-r--r--settings.gradle3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.gradle b/settings.gradle
index 6d39b61b8e4..fb8938449ff 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -30,6 +30,9 @@ gradleEnterprise {
uploadInBackground = false
publishAlwaysIf( isCiServer )
}
+ if (System.getenv().containsKey('CIRRUS_BRANCH')) {
+ buildScan.value 'BranchName', System.env.'CIRRUS_BRANCH'
+ }
}
rootProject.name = 'sonarqube'