refactor(executeFreeleapsPipeline): modify generateComponentStages to return an array of stages for improved structure
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
908735112a
commit
7411c2a8c2
@ -8,7 +8,7 @@ import com.freeleaps.devops.CommitMessageLinter
|
|||||||
import com.freeleaps.devops.ChangedComponentsDetector
|
import com.freeleaps.devops.ChangedComponentsDetector
|
||||||
|
|
||||||
def generateComponentStages(component) {
|
def generateComponentStages(component) {
|
||||||
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 +79,7 @@ spec:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} ]
|
||||||
}
|
}
|
||||||
|
|
||||||
def call(Closure closure) {
|
def call(Closure closure) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user