fix(pipeline): add logging for stashing root directory in pipeline execution

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-10 06:43:57 +08:00
parent f05e032387
commit b906867e36

View File

@ -335,6 +335,7 @@ def generateComponentStages(component, configurations) {
returnStdout: true returnStdout: true
) )
if (artifact == '.' || artifact == './') { if (artifact == '.' || artifact == './') {
log.info("Pipeline", "Stashing root directory for ${component.name}...")
stash includes: "", name: "${component.name}-root" stash includes: "", name: "${component.name}-root"
} else if (targetPathType.trim() == "dir") { } else if (targetPathType.trim() == "dir") {
stash includes: "${artifact}/**", name: "${component.name}-${artifact}" stash includes: "${artifact}/**", name: "${component.name}-${artifact}"