refactor(executeFreeleapsPipeline): move build agent image logic into steps block for improved structure
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
8d8cf33b1a
commit
b9d804b0c0
@ -113,6 +113,8 @@ spec:
|
||||
script {
|
||||
configurations.components.each { component ->
|
||||
stage("${component.name} :: Build Agent Setup") {
|
||||
steps {
|
||||
script {
|
||||
if (env.executeMode == "fully" || env.changedComponents.contains(component.name)) {
|
||||
def buildAgentImage = component.buildAgentImage
|
||||
if (buildAgentImage == null || buildAgentImage.isEmpty()) {
|
||||
@ -135,6 +137,8 @@ spec:
|
||||
env.buildAgentImage = buildAgentImage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("${component.name} :: Dependencies Resolving") {
|
||||
agent {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user