1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

fix(sonar): handle piper-bin error result (#1524)

This commit is contained in:
Christopher Fenner 2020-05-11 12:46:16 +02:00 committed by GitHub
parent 803071f143
commit 04da130dbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,14 +67,16 @@ void call(Map parameters = [:]) {
dockerOptions: config.dockerOptions
) {
if(!fileExists('.git')) utils.unstash('git')
withSonarQubeEnv(stepConfig.instance) {
withCredentials(credentials) {
withEnv(environment){
sh "./piper ${STEP_NAME}${customDefaultConfig}${customConfigArg}"
piperExecuteBin.handleErrorDetails(STEP_NAME) {
withSonarQubeEnv(stepConfig.instance) {
withCredentials(credentials) {
withEnv(environment){
sh "./piper ${STEP_NAME}${customDefaultConfig}${customConfigArg}"
}
}
}
jenkinsUtils.handleStepResults(STEP_NAME, false, false)
}
jenkinsUtils.handleStepResults(STEP_NAME, false, false)
}
} finally {
def ignore = sh script: 'rm -rf .sonar-scanner .certificates', returnStatus: true