refactor(executeFreeleapsPipeline): adjust generateComponentStages to improve formatting of stage definitions
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
7411c2a8c2
commit
bbe1c48b28
@ -8,7 +8,8 @@ import com.freeleaps.devops.CommitMessageLinter
|
||||
import com.freeleaps.devops.ChangedComponentsDetector
|
||||
|
||||
def generateComponentStages(component) {
|
||||
return [ 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 +80,8 @@ spec:
|
||||
}
|
||||
}
|
||||
}
|
||||
} ]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
def call(Closure closure) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user