fix(pipeline): log unstashed files for better debugging
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
96985920af
commit
0b1f5b709c
@ -535,9 +535,12 @@ spec:
|
|||||||
def stashName = artifact.replace('/', '-').replace('.', '-')
|
def stashName = artifact.replace('/', '-').replace('.', '-')
|
||||||
log.info("Pipeline", "Fetch stashed directory ${artifact} for ${component.name}...")
|
log.info("Pipeline", "Fetch stashed directory ${artifact} for ${component.name}...")
|
||||||
unstash "${component.name}-${stashName}"
|
unstash "${component.name}-${stashName}"
|
||||||
|
def artifactList = sh(script: "ls ${artifact} -al", returnStdout: true)
|
||||||
|
log.info("Pipeline", "Unstashed files: ${artifactList}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (component.dockerfile != null && !component.dockerfile.isEmpty()) {
|
if (component.dockerfile != null && !component.dockerfile.isEmpty()) {
|
||||||
log.error("Pipeline", "Component ${component.name} dockerfile not set!")
|
log.error("Pipeline", "Component ${component.name} dockerfile not set!")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user