fix(pipeline): log current working directory during artifact listing
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
912b1fd710
commit
377f4cccb0
@ -109,6 +109,8 @@ class ImageBuilder {
|
||||
steps.dir(workspace) {
|
||||
if (buildxBuilderName != null && !buildxBuilderName.isEmpty() && architectures.size() > 1) {
|
||||
steps.log.info("ImageBuilder", "Building image ${registry}/${repository}/${name} with architectures: ${architectures} using buildx builder: ${buildxBuilderName}, tag sets to ${version}")
|
||||
def currentPath = steps.sh(script: "pwd", returnStdout: true).trim()
|
||||
steps.log.info("ImageBuilder", "Current working dir: ${currentPath}")
|
||||
steps.log.info("ImageBuilder", "Set builder log level to plain...")
|
||||
steps.env.BUILDKIT_PROGRESS = "plain"
|
||||
steps.log.info("ImageBuilder", "Set builder timeout to 10min...")
|
||||
|
||||
@ -535,7 +535,7 @@ 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)
|
||||
def artifactList = sh(script: "ls ${artifact} -al && pwd", returnStdout: true)
|
||||
log.info("Pipeline", "Unstashed files: ${artifactList}")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user