fix(pipeline): update semantic release logging and remove unnecessary conditions in executeFreeleapsPipeline

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-07 18:18:14 +08:00
parent 2498387200
commit 7a11900023

View File

@ -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: [