@@ -109,31 +109,32 @@ def parallelStages = [failFast: false]
109109 }
110110 }
111111 }
112- parallelStages[' multi-arch' ] = {
113- imageType = ' linux'
114- withEnv([" IMAGE_TYPE=${ imageType} " , " REGISTRY_ORG=${ infra.isTrusted() ? 'jenkins' : 'jenkins4eval'} " ]) {
115- int retryCounter = 0
116- retry(count : 2 , conditions : [agent(), nonresumable()]) {
117- // Use local variable to manage concurrency and increment BEFORE spinning up any agent
118- final String resolvedAgentLabel = spotAgentSelector(agentSelector(imageType), retryCounter)
119- retryCounter++
120- node(resolvedAgentLabel) {
121- timeout(time : 60 , unit : ' MINUTES' ) {
122- checkout scm
123- stage(' Prepare Docker' ) {
124- if (infra. isTrusted()) {
125- echo ' INFO:Running on trusted.ci.jenkins.io, skipping'
126- } else {
127- sh ' make docker-init'
128- }
112+ }
113+
114+ parallelStages[' multi-arch' ] = {
115+ imageType = ' linux'
116+ withEnv([" IMAGE_TYPE=${ imageType} " , " REGISTRY_ORG=${ infra.isTrusted() ? 'jenkins' : 'jenkins4eval'} " ]) {
117+ int retryCounter = 0
118+ retry(count : 2 , conditions : [agent(), nonresumable()]) {
119+ // Use local variable to manage concurrency and increment BEFORE spinning up any agent
120+ final String resolvedAgentLabel = spotAgentSelector(agentSelector(imageType), retryCounter)
121+ retryCounter++
122+ node(resolvedAgentLabel) {
123+ timeout(time : 60 , unit : ' MINUTES' ) {
124+ checkout scm
125+ stage(' Prepare Docker' ) {
126+ if (infra. isTrusted()) {
127+ echo ' INFO:Running on trusted.ci.jenkins.io, skipping'
128+ } else {
129+ sh ' make docker-init'
129130 }
130- // Publication of multi-arch images is already taken care of with `make publish`
131- stage( ' Multi-Arch Build ' ) {
132- if (infra . isTrusted() ) {
133- echo ' INFO: Running on trusted.ci.jenkins.io, skipping '
134- } else {
135- sh ' make every-build '
136- }
131+ }
132+ // Publication of multi-arch images is already taken care of with `make publish`
133+ stage( ' Multi-Arch Build ' ) {
134+ if (infra . isTrusted()) {
135+ echo ' INFO: Running on trusted.ci.jenkins.io, skipping '
136+ } else {
137+ sh ' make every-build '
137138 }
138139 }
139140 }
@@ -142,6 +143,7 @@ def parallelStages = [failFast: false]
142143 }
143144}
144145
146+
145147// Execute parallel stages
146148parallel parallelStages
147149// // vim: ft=groovy
0 commit comments