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

Job DSL multibranchPipelineJob branchSources does not have `svn`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Jenkins LTS 2.121.2 Docker container
      Job DSL Plugin 1.70

      When attempting to use a Scripted Pipeline to execute some Job DSL to create a Multibranch Pipeline, I am unable to specify my branch sources in SVN.

       

      The documentation and source code indicate that this is simply not implemented.

       

      I would expect the following to work:

      node {
          jobDsl failOnMissingPlugin: true, 
              ignoreExisting: true, 
              sandbox: true, 
              scriptText: '''multibranchPipelineJob("test-generated") {
                  branchSources {
                      svn {
                              remoteBase("http://svn/svn/test_repo/trunk")
                              credentialsId("svn")
                          }
                      }
                  }
              }'''
      } 

            daspilker Daniel Spilker
            jfemia James Femia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: