-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstages.yaml
375 lines (372 loc) · 23.9 KB
/
stages.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
parameters:
# jobsLists
- name: code # jobsList inserted into code stage in stages
type: jobList
default: []
- name: build # jobsList inserted into build stage in stages
type: jobList
default: []
- name: deploy # deploymentList inserted into deploy stage in stages
type: deploymentList
default: []
- name: test # jobList inserted into test stage in stages
type: jobList
default: []
- name: promote # deploymentList inserted into promote stage in stages
type: deploymentList
default: []
- name: reject # deploymentList inserted into reject stage in stages
type: deploymentList
default: []
# stageList
- name: stages # Inserts each stage into stages
type: stageList
default:
- stage: code # code jobList param inserted to this stage
dependsOn: []
condition: and(succeeded(), eq(variables['build.reason'], 'PullRequest', 'Manual'))
- stage: build # build jobList param inserted to this stage
dependsOn: code
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'ResourceTrigger', 'Manual'))
- stage: deploy # deploy jobList param inserted to this stage
dependsOn: build
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'ResourceTrigger', 'Manual'))
- stage: test # test jobList param inserted to this stage
dependsOn:
- build
- deploy
condition: succeeded()
- stage: promote # promote jobList param inserted to this stage
dependsOn:
- deploy
- test
condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'ResourceTrigger', 'Manual'))
- stage: reject
dependsOn:
- deploy
- test
- promote
condition: failed()
- name: stagesSuffix # Optional stage name suffix. e.g. Dev would make buildDev, deployDev, etc.
type: string
default: ''
- name: stagesPrefix # Optional stage name prefix. e.g. dev- would make dev-build, dev-deploy, etc.
type: string
default: ''
- name: stagesCondition # Optional param to override the condition of all stages
type: string
default: ''
stages:
# For each stage in stages stageList
- ${{ each stage in parameters.stages }}:
# code:
# If stage name in parameters.stages stageList is code and parameters.code jobList has jobs, insert code stage
- ${{ if and(eq(stage.stage, 'code'), gt(length(parameters.code), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if gt(length(parameters.dependsOn), 0) }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on build stage and jobs in build param
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy param
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test param
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote param
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject param
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if eq(length(parameters.dependsOn), 0) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.code jobList
- ${{ parameters.code }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# build:
# If stage name in parameters.stages stageList is build and parameters.build jobList has jobs, insert build stage
- ${{ if and(eq(stage.stage, 'build'), gt(length(parameters.build), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if parameters.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code jobList
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy deploymentList
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test jobList
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote deploymentList
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject deploymentList
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(parameters.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.build jobList
- ${{ parameters.build }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# deploy:
# If stage name in parameters.stages stageList is deploy and parameters.deploy deploymentList has jobs, insert deploy stage
- ${{ if and(eq(stage.stage, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if parameters.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code jobList
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on build stage and jobs in build deploymentList
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test jobList
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote deploymentList
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject deploymentList
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(stage.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.deploy deploymentList
- ${{ parameters.deploy }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# test:
# If stage name in parameters.stages stageList is test and parameters.test jobList has jobs, insert test stage
- ${{ if and(eq(stage.stage, 'test'), gt(length(parameters.test), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if parameters.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code jobList
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on build stage and jobs in build deploymentList
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy jobList
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote deploymentList
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject deploymentList
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(stage.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.test jobList
- ${{ parameters.test }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# promote:
# If stage name in parameters.stages stageList is promote and parameters.promote deploymentList has jobs, insert promote stage
- ${{ if and(eq(stage.stage, 'promote'), gt(length(parameters.promote), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if parameters.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code jobList
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on build stage and jobs in build deploymentList
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy jobList
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test deploymentList
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject deploymentList
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(stage.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.promote deploymentList
- ${{ parameters.promote }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# reject:
# If stage name in parameters.stages stageList is reject and parameters.reject deploymentList has jobs, insert reject stage
- ${{ if and(eq(stage.stage, 'reject'), gt(length(parameters.reject), 0)) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in parameters.stages has dependencies, insert them if dependency has jobs
${{ if parameters.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on the stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code jobList
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on build stage and jobs in build deploymentList
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy jobList
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test deploymentList
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote deploymentList
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(stage.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
# Insert parameters.reject deploymentList
- ${{ parameters.reject }}
# If jobs are nested in stage of parameters.stages insert them
- ${{ if stage.jobs }}:
- ${{ stage.jobs }}
# stages:
# If additional stage in parameters.stages stageList and stage has jobs, insert stage. The stage name is not code, build, deploy, test, promote, or reject
- ${{ if and(notIn(stage.stage, 'code', 'build', 'deploy', 'test', 'promote', 'reject'), stage.jobs) }}:
- stage: '${{ parameters.stagesPrefix }}${{ stage.stage }}${{ parameters.stagesSuffix }}'
# If stage in stages param has dependencies insert them
${{ if stage.dependsOn }}:
dependsOn:
# For each dependency in this stage, only depend on that stage if it has jobs
- ${{ each dependency in stage.dependsOn }}:
# If stage depends on code stage and jobs in code param
- ${{ if and(eq(dependency, 'code'), gt(length(parameters.code), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on build stage and jobs in build param
- ${{ if and(eq(dependency, 'build'), gt(length(parameters.build), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on deploy stage and jobs in deploy param
- ${{ if and(eq(dependency, 'deploy'), gt(length(parameters.deploy), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on test stage and jobs in test param
- ${{ if and(eq(dependency, 'test'), gt(length(parameters.test), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on promote stage and jobs in promote param
- ${{ if and(eq(dependency, 'promote'), gt(length(parameters.promote), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on reject stage and jobs in reject param
- ${{ if and(eq(dependency, 'reject'), gt(length(parameters.reject), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
# If stage depends on stages other than code, build, deploy, test, promote, and reject, insert the dependency
- ${{ if notIn(dependency, 'code', 'build', 'deploy', 'test', 'promote', 'reject') }}:
# For each stage in parameters.stages, if dependency has jobs
- ${{ each stageDependency in parameters.stages }}:
# If the stage name in parameters.stages matches the dependency of this stage and the dependent stage has jobs, insert the dependency
- ${{ if and(eq(stageDependency.stage, dependency), gt(length(stageDependency.jobs), 0)) }}:
- '${{ parameters.stagesPrefix }}${{ dependency }}${{ parameters.stagesSuffix }}'
${{ if not(stage.dependsOn) }}:
dependsOn: []
# If stage in stages param has condition and stagesCondition param has no value set to override, insert the condition
${{ if and(stage.condition, not(parameters.stagesCondition)) }}:
condition: ${{ stage.condition }}
# If stagesCondition param has value use it for condition
${{ if parameters.stagesCondition }}:
condition: ${{ parameters.stagesCondition }}
# If stage in stages has no condition and stagesCondition param has no value, stage condition defaults to true
${{ if and(not(stage.condition), not(parameters.stagesCondition)) }}:
condition: true
jobs:
- ${{ stage.jobs }}