fix(pipeline): simplify execution of generated stages by iterating directly over components
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
35549617ce
commit
7ca0db9d0e
@ -561,12 +561,9 @@ spec:
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
def componentStages = configurations.components.collectEntries { component ->
|
||||
["Generated Stage :: ${component.name}": generateComponentStages(component, configurations)]
|
||||
}
|
||||
for (stage in componentStages) {
|
||||
log.info("Pipeline", "Executing ${stage.key}...")
|
||||
stage.value()
|
||||
configurations.components.each { component ->
|
||||
log.info("Pipeline", "Executing generated stages for ${component.name}...")
|
||||
generateComponentStages(component, configurations)()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user