fix(pipeline): simplify execution of generated stages by iterating directly over components

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-10 07:39:27 +08:00
parent 35549617ce
commit 7ca0db9d0e

View File

@ -561,12 +561,9 @@ spec:
} }
steps { steps {
script { script {
def componentStages = configurations.components.collectEntries { component -> configurations.components.each { component ->
["Generated Stage :: ${component.name}": generateComponentStages(component, configurations)] log.info("Pipeline", "Executing generated stages for ${component.name}...")
} generateComponentStages(component, configurations)()
for (stage in componentStages) {
log.info("Pipeline", "Executing ${stage.key}...")
stage.value()
} }
} }
} }