@@ -95,6 +95,7 @@ class JobParentSpec extends Specification {
9595 view instanceof BuildPipelineView
9696 parent. referencedViews. contains(view)
9797 view. node. description[0 ]. text() == ' foo'
98+ _ * jobManagement. requirePlugin(' build-pipeline-plugin' )
9899 }
99100
100101 def ' build pipeline view without closure' () {
@@ -105,6 +106,7 @@ class JobParentSpec extends Specification {
105106 view. name == ' test'
106107 view instanceof BuildPipelineView
107108 parent. referencedViews. contains(view)
109+ _ * jobManagement. requirePlugin(' build-pipeline-plugin' )
108110 }
109111
110112 def ' build monitor view deprecated variant' () {
@@ -131,6 +133,7 @@ class JobParentSpec extends Specification {
131133 view instanceof BuildMonitorView
132134 parent. referencedViews. contains(view)
133135 view. node. description[0 ]. text() == ' foo'
136+ _ * jobManagement. requirePlugin(' build-monitor-plugin' )
134137 }
135138
136139 def ' build monitor view without closure' () {
@@ -141,6 +144,7 @@ class JobParentSpec extends Specification {
141144 view. name == ' test'
142145 view instanceof BuildMonitorView
143146 parent. referencedViews. contains(view)
147+ _ * jobManagement. requirePlugin(' build-monitor-plugin' )
144148 }
145149
146150 def ' sectioned view deprecated variant' () {
@@ -167,6 +171,7 @@ class JobParentSpec extends Specification {
167171 view instanceof SectionedView
168172 parent. referencedViews. contains(view)
169173 view. node. description[0 ]. text() == ' foo'
174+ _ * jobManagement. requirePlugin(' sectioned-view' )
170175 }
171176
172177 def ' sectioned view without closure' () {
@@ -177,6 +182,7 @@ class JobParentSpec extends Specification {
177182 view. name == ' test'
178183 view instanceof SectionedView
179184 parent. referencedViews. contains(view)
185+ _ * jobManagement. requirePlugin(' sectioned-view' )
180186 }
181187
182188 def ' nested view deprecated variant' () {
@@ -203,6 +209,7 @@ class JobParentSpec extends Specification {
203209 view instanceof NestedView
204210 parent. referencedViews. contains(view)
205211 view. node. description[0 ]. text() == ' foo'
212+ _ * jobManagement. requirePlugin(' nested-view' )
206213 }
207214
208215 def ' nested view without closure' () {
@@ -213,6 +220,7 @@ class JobParentSpec extends Specification {
213220 view. name == ' test'
214221 view instanceof NestedView
215222 parent. referencedViews. contains(view)
223+ _ * jobManagement. requirePlugin(' nested-view' )
216224 }
217225
218226 def ' delivery pipeline view deprecated variant' () {
@@ -239,6 +247,7 @@ class JobParentSpec extends Specification {
239247 view instanceof DeliveryPipelineView
240248 parent. referencedViews. contains(view)
241249 view. node. description[0 ]. text() == ' foo'
250+ _ * jobManagement. requirePlugin(' delivery-pipeline-plugin' )
242251 }
243252
244253 def ' delivery pipeline view without closure' () {
@@ -249,6 +258,7 @@ class JobParentSpec extends Specification {
249258 view. name == ' test'
250259 view instanceof DeliveryPipelineView
251260 parent. referencedViews. contains(view)
261+ _ * jobManagement. requirePlugin(' delivery-pipeline-plugin' )
252262 }
253263
254264 def ' folder deprecated variant' () {
@@ -261,6 +271,7 @@ class JobParentSpec extends Specification {
261271 folder. name == ' test'
262272 parent. referencedJobs. contains(folder)
263273 2 * jobManagement. logDeprecationWarning()
274+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
264275 }
265276
266277 def ' folder' () {
@@ -273,6 +284,7 @@ class JobParentSpec extends Specification {
273284 folder. name == ' test'
274285 parent. referencedJobs. contains(folder)
275286 folder. node. displayName[0 ]. text() == ' foo'
287+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
276288 }
277289
278290 def ' folder without closure' () {
@@ -282,6 +294,7 @@ class JobParentSpec extends Specification {
282294 then :
283295 folder. name == ' test'
284296 parent. referencedJobs. contains(folder)
297+ _ * jobManagement. requirePlugin(' cloudbees-folder' )
285298 }
286299
287300 def ' default config file deprecated variant' () {
@@ -295,6 +308,7 @@ class JobParentSpec extends Specification {
295308 configFile. type == ConfigFileType.Custom
296309 parent. referencedConfigFiles. contains(configFile)
297310 2 * jobManagement. logDeprecationWarning()
311+ _ * jobManagement. requirePlugin(' config-file-provider' )
298312 }
299313
300314 def ' custom config file deprecated variant' () {
@@ -308,6 +322,7 @@ class JobParentSpec extends Specification {
308322 configFile. type == ConfigFileType.Custom
309323 parent. referencedConfigFiles. contains(configFile)
310324 2 * jobManagement. logDeprecationWarning()
325+ _ * jobManagement. requirePlugin(' config-file-provider' )
311326 }
312327
313328 def ' custom config file' () {
@@ -321,6 +336,7 @@ class JobParentSpec extends Specification {
321336 configFile. type == ConfigFileType.Custom
322337 configFile. comment == ' foo'
323338 parent. referencedConfigFiles. contains(configFile)
339+ _ * jobManagement. requirePlugin(' config-file-provider' )
324340 }
325341
326342 def ' custom config file without closure' () {
@@ -331,6 +347,7 @@ class JobParentSpec extends Specification {
331347 configFile. name == ' test'
332348 configFile. type == ConfigFileType.Custom
333349 parent. referencedConfigFiles. contains(configFile)
350+ _ * jobManagement. requirePlugin(' config-file-provider' )
334351 }
335352
336353 def ' Maven settings config file deprecated variant' () {
@@ -344,6 +361,7 @@ class JobParentSpec extends Specification {
344361 configFile. type == ConfigFileType.MavenSettings
345362 parent. referencedConfigFiles. contains(configFile)
346363 2 * jobManagement. logDeprecationWarning()
364+ _ * jobManagement. requirePlugin(' config-file-provider' )
347365 }
348366
349367 def ' Maven settings config file' () {
@@ -357,6 +375,7 @@ class JobParentSpec extends Specification {
357375 configFile. type == ConfigFileType.MavenSettings
358376 configFile. comment == ' foo'
359377 parent. referencedConfigFiles. contains(configFile)
378+ _ * jobManagement. requirePlugin(' config-file-provider' )
360379 }
361380
362381 def ' Maven settings config file without closure' () {
@@ -367,6 +386,7 @@ class JobParentSpec extends Specification {
367386 configFile. name == ' test'
368387 configFile. type == ConfigFileType.MavenSettings
369388 parent. referencedConfigFiles. contains(configFile)
389+ _ * jobManagement. requirePlugin(' config-file-provider' )
370390 }
371391
372392 def ' readFileInWorkspace from seed job' () {
@@ -500,6 +520,7 @@ class JobParentSpec extends Specification {
500520 then :
501521 job. name == ' test'
502522 parent. referencedJobs. contains(job)
523+ _ * jobManagement. requirePlugin(' build-flow-plugin' )
503524 }
504525
505526 def ' matrixJob deprecated variant' () {
@@ -544,6 +565,7 @@ class JobParentSpec extends Specification {
544565 then :
545566 job. name == ' test'
546567 parent. referencedJobs. contains(job)
568+ _ * jobManagement. requirePlugin(' maven-plugin' )
547569 }
548570
549571 def ' multiJob deprecated variant' () {
@@ -566,6 +588,7 @@ class JobParentSpec extends Specification {
566588 then :
567589 job. name == ' test'
568590 parent. referencedJobs. contains(job)
591+ _ * jobManagement. requirePlugin(' jenkins-multijob-plugin' )
569592 }
570593
571594 def ' workflow deprecated variant' () {
@@ -588,5 +611,6 @@ class JobParentSpec extends Specification {
588611 then :
589612 job. name == ' test'
590613 parent. referencedJobs. contains(job)
614+ _ * jobManagement. requirePlugin(' workflow-aggregator' )
591615 }
592616}
0 commit comments