mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-20 05:19:40 +02:00
Improve logging wrt the docker image used for launching piper-go (#1578)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
parent
911a88bd49
commit
75a35fb35a
@ -62,7 +62,7 @@ void call(Map parameters = [:], String stepName, String metadataFile, List crede
|
||||
config.stashNoDefaultExcludes = parameters.stashNoDefaultExcludes
|
||||
}
|
||||
|
||||
dockerWrapper(script, config) {
|
||||
dockerWrapper(script, stepName, config) {
|
||||
handleErrorDetails(stepName) {
|
||||
script.commonPipelineEnvironment.writeToDisk(script)
|
||||
try {
|
||||
@ -141,8 +141,9 @@ static String getCustomConfigArg(def script) {
|
||||
}
|
||||
|
||||
// reused in sonarExecuteScan
|
||||
void dockerWrapper(script, config, body) {
|
||||
void dockerWrapper(script, stepName, config, body) {
|
||||
if (config.dockerImage) {
|
||||
echo "[INFO] executing pipeline step '${stepName}' with docker image '${config.dockerImage}'"
|
||||
Map dockerExecuteParameters = [:].plus(config)
|
||||
dockerExecuteParameters.script = script
|
||||
dockerExecute(dockerExecuteParameters) {
|
||||
|
@ -60,7 +60,7 @@ void call(Map parameters = [:]) {
|
||||
// load certificates into cacerts file
|
||||
loadCertificates(customTlsCertificateLinks: stepConfig.customTlsCertificateLinks, verbose: stepConfig.verbose)
|
||||
// execute step
|
||||
piperExecuteBin.dockerWrapper(script, config){
|
||||
piperExecuteBin.dockerWrapper(script, STEP_NAME, config){
|
||||
if(!fileExists('.git')) utils.unstash('git')
|
||||
piperExecuteBin.handleErrorDetails(STEP_NAME) {
|
||||
withSonarQubeEnv(stepConfig.instance) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user