From c54fd610b88a6de67cb9f3b0c35383f7ee664568 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Tue, 25 Feb 2025 12:50:24 +0800 Subject: [PATCH] fix(pipeline): update stash naming convention to include component name Signed-off-by: zhenyus --- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index 8c2ee1cb..d311f710 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -450,7 +450,7 @@ spec: } else if (targetPathType.trim() == "dir") { def stashName = artifact.replace('/', '-').replace('.', '-') log.info("Pipeline", "Stashing directory ${artifact} for ${component.name}...") - stash includes: "${artifact}/**", name: "${stashName}-${artifact}" + stash includes: "${artifact}/**", name: "${component.name}-${stashName}" } else { stash includes: artifact, name: "${component.name}-${artifact}" } @@ -534,7 +534,7 @@ spec: } else { def stashName = artifact.replace('/', '-').replace('.', '-') log.info("Pipeline", "Fetch stashed directory ${artifact} for ${component.name}...") - unstash "${stashName}-${artifact}" + unstash "${component.name}-${stashName}" } }