Add closest modifiable ancestor LookupStrategy

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)

      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.)

            Assignee:
            Daniel Spilker
            Reporter:
            Frédéric Chuong
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: