refactor(executeFreeleapsPipeline): modify generateComponentStages to return an array of stages for improved structure

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-04 14:41:42 +08:00
parent 908735112a
commit 7411c2a8c2

View File

@ -8,7 +8,7 @@ import com.freeleaps.devops.CommitMessageLinter
import com.freeleaps.devops.ChangedComponentsDetector
def generateComponentStages(component) {
stage("${component.name} :: Build Agent Setup") {
return [ stage("${component.name} :: Build Agent Setup") {
steps {
script {
if (env.executeMode == "fully" || env.changedComponents.contains(component.name)) {
@ -79,7 +79,7 @@ spec:
}
}
}
}
} ]
}
def call(Closure closure) {