mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
copy changes from #1885
This commit is contained in:
parent
90ef520fe3
commit
2471b4475e
@ -5,6 +5,7 @@ import com.sap.piper.JenkinsUtils
|
||||
import com.sap.piper.MapUtils
|
||||
import com.sap.piper.PiperGoUtils
|
||||
import com.sap.piper.Utils
|
||||
import com.sap.piper.analytics.InfluxData
|
||||
import groovy.transform.Field
|
||||
|
||||
import static com.sap.piper.Prerequisites.checkScript
|
||||
@ -65,13 +66,17 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede
|
||||
dockerWrapper(script, stepName, config) {
|
||||
handleErrorDetails(stepName) {
|
||||
script.commonPipelineEnvironment.writeToDisk(script)
|
||||
try {
|
||||
credentialWrapper(config, credentialInfo) {
|
||||
sh "${piperGoPath} ${stepName}${defaultConfigArgs}${customConfigArg}"
|
||||
try{
|
||||
try {
|
||||
credentialWrapper(config, credentialInfo) {
|
||||
sh "${piperGoPath} ${stepName}${defaultConfigArgs}${customConfigArg}"
|
||||
}
|
||||
} finally {
|
||||
jenkinsUtils.handleStepResults(stepName, failOnMissingReports, failOnMissingLinks)
|
||||
script.commonPipelineEnvironment.readFromDisk(script)
|
||||
}
|
||||
} finally {
|
||||
jenkinsUtils.handleStepResults(stepName, failOnMissingReports, failOnMissingLinks)
|
||||
script.commonPipelineEnvironment.readFromDisk(script)
|
||||
}finally{
|
||||
InfluxData.readFromDisk(script)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user