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:
parent
803071f143
commit
04da130dbd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user