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

Allow to add additional items to multibranch pipeline jobs

    XMLWordPrintable

Details

    Description

      I automatically create multibranch pipeline Jobs using the job DSL for every module that is developed.

      On module has many different test configurations which I want to execute in separate test pipelines. So let's say we have a branch 0.1 for that module in our SCM:

      <SVN_URL>/<MODULE_NAME>/branches/0.1

      There is a Jenkinsfile at this URL

      The branches-folder is scanned by the multibranch pipeline project. We are able to create a job for the branch 0.1 because we can find the Jenkinsfile there

      The Jenkinsfile contains a job DSL which should create multiple test jobs for the branch which it belongs to. These jobs should either occur next to the 0.1 job. It should look like this (manually created from an existing view with my browser's "inspect code" functionality)

       

      Another option would be to have a subfolder for the 0.1 branch which then contains a job that executes the pipeline in the Jenkinsfile. When the Jenkinsfile, which has the job DSL script, is executed the first time, the test jobs can be placed into that "0.1" folder, too

      So basically, what is needed is the possibility to add further items (like freestyle jobs or regular pipeline jobs, folders) to a multibranch pipeline job.

      So what I would want to have, too is the "New Item" link on the left hand navigation bar.

      Attachments

        Issue Links

          Activity

            jglick Jesse Glick added a comment -

            Nothing really new here, longstanding RFEs.

            jglick Jesse Glick added a comment - Nothing really new here, longstanding RFEs.

            Also interested to add custom projects to a multibranch pipeline job.
            In my scenario I just want to create multiple projects (different names) that build the same branch (master)
            Current workaround is to create dummy empty branches in git in order to get those projects picked up by multibranch plugin.

            fatcash Alexej Ismailov added a comment - Also interested to add custom projects to a multibranch pipeline job. In my scenario I just want to create multiple projects (different names) that build the same branch (master) Current workaround is to create dummy empty branches in git in order to get those projects picked up by multibranch plugin.

            People

              Unassigned Unassigned
              codingspiderfox Chris H
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: