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
|
dockerOptions: config.dockerOptions
|
||||||
) {
|
) {
|
||||||
if(!fileExists('.git')) utils.unstash('git')
|
if(!fileExists('.git')) utils.unstash('git')
|
||||||
withSonarQubeEnv(stepConfig.instance) {
|
piperExecuteBin.handleErrorDetails(STEP_NAME) {
|
||||||
withCredentials(credentials) {
|
withSonarQubeEnv(stepConfig.instance) {
|
||||||
withEnv(environment){
|
withCredentials(credentials) {
|
||||||
sh "./piper ${STEP_NAME}${customDefaultConfig}${customConfigArg}"
|
withEnv(environment){
|
||||||
|
sh "./piper ${STEP_NAME}${customDefaultConfig}${customConfigArg}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
jenkinsUtils.handleStepResults(STEP_NAME, false, false)
|
||||||
}
|
}
|
||||||
jenkinsUtils.handleStepResults(STEP_NAME, false, false)
|
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
def ignore = sh script: 'rm -rf .sonar-scanner .certificates', returnStatus: true
|
def ignore = sh script: 'rm -rf .sonar-scanner .certificates', returnStatus: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user