File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,19 @@ void call(Map parameters = [:]) {
65
65
writePipelineEnv(script : script, piperGoPath : piperGoPath)
66
66
withEnv(environment) {
67
67
influxWrapper(script) {
68
- piperExecuteBin. credentialWrapper(config, credentialInfo) {
69
- if (stepConfig. instance) {
70
- withSonarQubeEnv(stepConfig. instance) {
71
- echo " Instance is deprecated - please use serverUrl parameter to set URL to the Sonar backend."
68
+ try {
69
+ piperExecuteBin. credentialWrapper(config, credentialInfo) {
70
+ if (stepConfig. instance) {
71
+ withSonarQubeEnv(stepConfig. instance) {
72
+ echo " Instance is deprecated - please use serverUrl parameter to set URL to the Sonar backend."
73
+ sh " ${ piperGoPath} ${ STEP_NAME}${ customDefaultConfig}${ customConfigArg} "
74
+ }
75
+ } else {
72
76
sh " ${ piperGoPath} ${ STEP_NAME}${ customDefaultConfig}${ customConfigArg} "
73
- jenkinsUtils. handleStepResults(STEP_NAME , false , false )
74
- readPipelineEnv(script : script, piperGoPath : piperGoPath)
75
77
}
76
- } else {
77
- sh " ${ piperGoPath} ${ STEP_NAME}${ customDefaultConfig}${ customConfigArg} "
78
78
}
79
+ } finally {
80
+ jenkinsUtils. handleStepResults(STEP_NAME , false , false )
79
81
}
80
82
}
81
83
}
You can’t perform that action at this time.
0 commit comments