@@ -95,6 +95,7 @@ class JobParentSpec extends Specification {
95
95
view instanceof BuildPipelineView
96
96
parent. referencedViews. contains(view)
97
97
view. node. description[0 ]. text() == ' foo'
98
+ _ * jobManagement. requirePlugin(' build-pipeline-plugin' )
98
99
}
99
100
100
101
def ' build pipeline view without closure' () {
@@ -105,6 +106,7 @@ class JobParentSpec extends Specification {
105
106
view. name == ' test'
106
107
view instanceof BuildPipelineView
107
108
parent. referencedViews. contains(view)
109
+ _ * jobManagement. requirePlugin(' build-pipeline-plugin' )
108
110
}
109
111
110
112
def ' build monitor view deprecated variant' () {
@@ -131,6 +133,7 @@ class JobParentSpec extends Specification {
131
133
view instanceof BuildMonitorView
132
134
parent. referencedViews. contains(view)
133
135
view. node. description[0 ]. text() == ' foo'
136
+ _ * jobManagement. requirePlugin(' build-monitor-plugin' )
134
137
}
135
138
136
139
def ' build monitor view without closure' () {
@@ -141,6 +144,7 @@ class JobParentSpec extends Specification {
141
144
view. name == ' test'
142
145
view instanceof BuildMonitorView
143
146
parent. referencedViews. contains(view)
147
+ _ * jobManagement. requirePlugin(' build-monitor-plugin' )
144
148
}
145
149
146
150
def ' sectioned view deprecated variant' () {
@@ -167,6 +171,7 @@ class JobParentSpec extends Specification {
167
171
view instanceof SectionedView
168
172
parent. referencedViews. contains(view)
169
173
view. node. description[0 ]. text() == ' foo'
174
+ _ * jobManagement. requirePlugin(' sectioned-view' )
170
175
}
171
176
172
177
def ' sectioned view without closure' () {
@@ -177,6 +182,7 @@ class JobParentSpec extends Specification {
177
182
view. name == ' test'
178
183
view instanceof SectionedView
179
184
parent. referencedViews. contains(view)
185
+ _ * jobManagement. requirePlugin(' sectioned-view' )
180
186
}
181
187
182
188
def ' nested view deprecated variant' () {
@@ -203,6 +209,7 @@ class JobParentSpec extends Specification {
203
209
view instanceof NestedView
204
210
parent. referencedViews. contains(view)
205
211
view. node. description[0 ]. text() == ' foo'
212
+ _ * jobManagement. requirePlugin(' nested-view' )
206
213
}
207
214
208
215
def ' nested view without closure' () {
@@ -213,6 +220,7 @@ class JobParentSpec extends Specification {
213
220
view. name == ' test'
214
221
view instanceof NestedView
215
222
parent. referencedViews. contains(view)
223
+ _ * jobManagement. requirePlugin(' nested-view' )
216
224
}
217
225
218
226
def ' delivery pipeline view deprecated variant' () {
@@ -239,6 +247,7 @@ class JobParentSpec extends Specification {
239
247
view instanceof DeliveryPipelineView
240
248
parent. referencedViews. contains(view)
241
249
view. node. description[0 ]. text() == ' foo'
250
+ _ * jobManagement. requirePlugin(' delivery-pipeline-plugin' )
242
251
}
243
252
244
253
def ' delivery pipeline view without closure' () {
@@ -249,6 +258,7 @@ class JobParentSpec extends Specification {
249
258
view. name == ' test'
250
259
view instanceof DeliveryPipelineView
251
260
parent. referencedViews. contains(view)
261
+ _ * jobManagement. requirePlugin(' delivery-pipeline-plugin' )
252
262
}
253
263
254
264
def ' folder deprecated variant' () {
@@ -261,6 +271,7 @@ class JobParentSpec extends Specification {
261
271
folder. name == ' test'
262
272
parent. referencedJobs. contains(folder)
263
273
2 * jobManagement. logDeprecationWarning()
274
+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
264
275
}
265
276
266
277
def ' folder' () {
@@ -273,6 +284,7 @@ class JobParentSpec extends Specification {
273
284
folder. name == ' test'
274
285
parent. referencedJobs. contains(folder)
275
286
folder. node. displayName[0 ]. text() == ' foo'
287
+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
276
288
}
277
289
278
290
def ' folder without closure' () {
@@ -282,6 +294,7 @@ class JobParentSpec extends Specification {
282
294
then :
283
295
folder. name == ' test'
284
296
parent. referencedJobs. contains(folder)
297
+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
285
298
}
286
299
287
300
def ' default config file deprecated variant' () {
@@ -295,6 +308,7 @@ class JobParentSpec extends Specification {
295
308
configFile. type == ConfigFileType.Custom
296
309
parent. referencedConfigFiles. contains(configFile)
297
310
2 * jobManagement. logDeprecationWarning()
311
+ _ * jobManagement. requirePlugin(' config-file-provider' )
298
312
}
299
313
300
314
def ' custom config file deprecated variant' () {
@@ -308,6 +322,7 @@ class JobParentSpec extends Specification {
308
322
configFile. type == ConfigFileType.Custom
309
323
parent. referencedConfigFiles. contains(configFile)
310
324
2 * jobManagement. logDeprecationWarning()
325
+ _ * jobManagement. requirePlugin(' config-file-provider' )
311
326
}
312
327
313
328
def ' custom config file' () {
@@ -321,6 +336,7 @@ class JobParentSpec extends Specification {
321
336
configFile. type == ConfigFileType.Custom
322
337
configFile. comment == ' foo'
323
338
parent. referencedConfigFiles. contains(configFile)
339
+ _ * jobManagement. requirePlugin(' config-file-provider' )
324
340
}
325
341
326
342
def ' custom config file without closure' () {
@@ -331,6 +347,7 @@ class JobParentSpec extends Specification {
331
347
configFile. name == ' test'
332
348
configFile. type == ConfigFileType.Custom
333
349
parent. referencedConfigFiles. contains(configFile)
350
+ _ * jobManagement. requirePlugin(' config-file-provider' )
334
351
}
335
352
336
353
def ' Maven settings config file deprecated variant' () {
@@ -344,6 +361,7 @@ class JobParentSpec extends Specification {
344
361
configFile. type == ConfigFileType.MavenSettings
345
362
parent. referencedConfigFiles. contains(configFile)
346
363
2 * jobManagement. logDeprecationWarning()
364
+ _ * jobManagement. requirePlugin(' config-file-provider' )
347
365
}
348
366
349
367
def ' Maven settings config file' () {
@@ -357,6 +375,7 @@ class JobParentSpec extends Specification {
357
375
configFile. type == ConfigFileType.MavenSettings
358
376
configFile. comment == ' foo'
359
377
parent. referencedConfigFiles. contains(configFile)
378
+ _ * jobManagement. requirePlugin(' config-file-provider' )
360
379
}
361
380
362
381
def ' Maven settings config file without closure' () {
@@ -367,6 +386,7 @@ class JobParentSpec extends Specification {
367
386
configFile. name == ' test'
368
387
configFile. type == ConfigFileType.MavenSettings
369
388
parent. referencedConfigFiles. contains(configFile)
389
+ _ * jobManagement. requirePlugin(' config-file-provider' )
370
390
}
371
391
372
392
def ' readFileInWorkspace from seed job' () {
@@ -500,6 +520,7 @@ class JobParentSpec extends Specification {
500
520
then :
501
521
job. name == ' test'
502
522
parent. referencedJobs. contains(job)
523
+ _ * jobManagement. requirePlugin(' build-flow-plugin' )
503
524
}
504
525
505
526
def ' matrixJob deprecated variant' () {
@@ -544,6 +565,7 @@ class JobParentSpec extends Specification {
544
565
then :
545
566
job. name == ' test'
546
567
parent. referencedJobs. contains(job)
568
+ _ * jobManagement. requirePlugin(' maven-plugin' )
547
569
}
548
570
549
571
def ' multiJob deprecated variant' () {
@@ -566,6 +588,7 @@ class JobParentSpec extends Specification {
566
588
then :
567
589
job. name == ' test'
568
590
parent. referencedJobs. contains(job)
591
+ _ * jobManagement. requirePlugin(' jenkins-multijob-plugin' )
569
592
}
570
593
571
594
def ' workflow deprecated variant' () {
@@ -588,5 +611,6 @@ class JobParentSpec extends Specification {
588
611
then :
589
612
job. name == ' test'
590
613
parent. referencedJobs. contains(job)
614
+ _ * jobManagement. requirePlugin(' workflow-aggregator' )
591
615
}
592
616
}
0 commit comments