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

Proper Multibranch pipeline support

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • java-client-api
    • None
    • Jenkins 2.60.1, Java client api 0.3.7

      Currently, the Java client api does not have proper support for Multibranch projects. Since these differ a bit from other types of jobs, how to use the Java client api's are not intuitive. The code base does not really take Multibranch projects in to account either. It would preferable if these could be supported out of the box with proper object models.

      The current workaround is to mimic the Multibranch job as a folder, such as:

      FolderJob multibranchRoot = new FolderJob(createdJob.getName(), jenkinsUrl + '/job/' + createdJob.getName() + '/')
      def job = jenkins.getJob(multibranchRoot, 'master')

            khmarbaise Karl-Heinz Marbaise
            tommysdk Tommy Tynjä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: