From 7a11900023f30e9adf969b9c8054c5113d2a29af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Fri, 7 Feb 2025 18:18:14 +0800 Subject: [PATCH] fix(pipeline): update semantic release logging and remove unnecessary conditions in executeFreeleapsPipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- first-class-pipeline/vars/executeFreeleapsPipeline.groovy | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index c9de80a0..f0f79783 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -246,9 +246,8 @@ def generateComponentStages(component, configurations) { script { if (env.executeMode == "fully" || env.changedComponents.contains(component.name)) { if (component.semanticReleaseEnabled != null && component.semanticReleaseEnabled) { - log.info("Pipeline", "Semantic releasing has enabled, preparing semantic release...") + log.info("Pipeline", "Semantic releasing has enabled, preparing semantic release environment...") - log.info("Pipeline", "Using ${component.semanticReleaseBranch} as semantic release branch for ${component.name}") env.semanticReleasingContainerImage = "docker.io/semantic-release/semantic-release:latest" } } @@ -256,11 +255,6 @@ def generateComponentStages(component, configurations) { }, // Semantic Releasing stage("${component.name} :: Semantic Releasing") { - when { - expression { - return (env.executeMode == "fully" || env.changedComponents.contains(component.name)) && env.semanticReleasingContainerImage != null && !env.semanticReleasingContainerImage.isEmpty() - } - } podTemplate( label: "semantic-releasing-${component.name}", containers: [