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

jobdsl for pipeline multibranch defaults

    Details

    • Similar Issues:

      Description

      It would be good if we can use the jobdsl to create multibranch pipeline jobs with defaults. The current DSL for multibranch pipeline does not seem to have defaults to make the generated job use the default jenkinsfile

        Attachments

          Activity

          Hide
          anomalizer Arvind Jayaprakash added a comment -

          Adding the following lines to the DSL does the trick

             configure { node ->
                (node / 'factory').@class = 'org.jenkinsci.plugins.pipeline.multibranch.defaults.PipelineBranchDefaultsProjectFactory'
                (node / 'factory').@plugin = 'pipeline-multibranch-defaults'
             }
          Show
          anomalizer Arvind Jayaprakash added a comment - Adding the following lines to the DSL does the trick    configure { node ->       (node / 'factory').@class = 'org.jenkinsci.plugins.pipeline.multibranch.defaults.PipelineBranchDefaultsProjectFactory'       (node / 'factory').@plugin = 'pipeline-multibranch-defaults'    }
          Hide
          sag47 Sam Gleske added a comment -

          This will be resolved when https://github.com/jenkinsci/pipeline-multibranch-defaults-plugin/pull/3 is merged and released.

          Show
          sag47 Sam Gleske added a comment - This will be resolved when https://github.com/jenkinsci/pipeline-multibranch-defaults-plugin/pull/3  is merged and released.

            People

            • Assignee:
              vaimr Denis Saponenko
              Reporter:
              anomalizer Arvind Jayaprakash
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: