diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2023-11-24 09:25:49 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-11-27 20:02:43 +0000 |
commit | 41b4679c65e31250875a74a4df77af6380bad66a (patch) | |
tree | b862b014c4bd08566ee99ee55ff35ce2cf3f40d9 | |
parent | 55b03321e6a362fe6ae01edbd263e8bfc3232246 (diff) | |
download | sonarqube-41b4679c65e31250875a74a4df77af6380bad66a.tar.gz sonarqube-41b4679c65e31250875a74a4df77af6380bad66a.zip |
NO-JIRA added branch name to gradle build scans
-rw-r--r-- | settings.gradle | 3 |
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' |