Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40732

Add closest modifiable ancestor LookupStrategy

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

          [JENKINS-40732] Add closest modifiable ancestor LookupStrategy

          Frédéric Chuong created issue -
          Frédéric Chuong made changes -
          Environment Original: job-dsl 1.53
          New: Jenkins 2.19.x
          job-dsl 1.53
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            daspilker Daniel Spilker
            fchuong Frédéric Chuong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: