-
Improvement
-
Resolution: Fixed
-
Minor
-
Jenkins 2.19.x
job-dsl 1.53
Given the following item hierarchy:
- Jenkins root
- ModifiableFolder (such as com.cloudbees.hudson.plugins.folder.Folder)
- ComputedFolder (such as org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject)
- JobDslAwareJob (such as org.jenkinsci.plugins.workflow.job.WorkflowJob with Jenkinsfile making use of the jobDsl pipeline DSL)
- ComputedFolder (such as org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject)
- ModifiableFolder (such as com.cloudbees.hudson.plugins.folder.Folder)
Without prior knowledge of ModifiableFolder, it is not possible to create a job under that folder:
- with JENKINS_ROOT lookup strategy
- with SEED_JOB lookup strategy as it will attempt to create under ComputedFolder which does not implement ModifiableTopLevelItemGroup
A "closest modifiable ancestor" strategy would help creating jobs within ModifiableFolder regardless of its characteristics (name, subfolder, etc.)