fix(pipeline): log unstashed files for better debugging

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-14 14:43:04 +08:00
parent 96985920af
commit 0b1f5b709c

View File

@ -535,9 +535,12 @@ spec:
def stashName = artifact.replace('/', '-').replace('.', '-')
log.info("Pipeline", "Fetch stashed directory ${artifact} for ${component.name}...")
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()) {
log.error("Pipeline", "Component ${component.name} dockerfile not set!")
}