1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

feat(sonar): report to custom branch name (#1341)

* feat(sonar): report to custom branch name

* fix typo

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
HenrikB 2020-04-01 12:38:36 +02:00 committed by GitHub
parent ea007c0d1f
commit 0a29ff2c57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,11 @@ import java.nio.charset.StandardCharsets
'verbose'
]
@Field Set STEP_CONFIG_KEYS = GENERAL_CONFIG_KEYS.plus([
/**
* Non-Pull-Request voting only:
* Name of the SonarQube branch that should be used to report findings to. If empty, SonarQube uses its main branch per default.
*/
'branchName',
/**
* List containing download links of custom TLS certificates. This is required to ensure trusted connections to instances with custom certificates.
*/
@ -190,6 +195,8 @@ void call(Map parameters = [:]) {
workerForGithubAuth(config)
}
}
} else {
if(configuration.branchName) configuration.options.add("sonar.branch.name=${configuration.branchName}")
}
dockerExecute(