refactor(executeFreeleapsPipeline): adjust generateComponentStages to improve formatting of stage definitions

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

View File

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