Dynamic DSL for workflowMultiBranchProjectFactory not working

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When trying to configure the script path for a multibranchPipelineJob using the Dynamic DSL

      factory {
      	workflowMultiBranchProjectFactory {
      		scriptPath("test/Jenkinsfile")
      	}
        }
      

      The default script path of just "Jenkinsfile" is configured on the generated job.
      I was initially using the prescribed DSL for github branch source jobs and thought that might have been the problem, but when I moved the branch source configuration to the Dynamic DSL the problem persisted.

      multibranchPipelineJob('testing/scriptpath') {
        branchSources {
          branchSource {
            source {
              github {
                id("test")
                // Github Enterprise
                apiUri('https://*****/api/v3/')
                credentialsId('github_token')
                repoOwner("sfoster")
                repository("branch_filter_test")
              }
            }
          }
        }
        factory {
      	workflowMultiBranchProjectFactory {
      		scriptPath("test/Jenkinsfile")
      	}
        }
      }
      

            Assignee:
            Daniel Spilker
            Reporter:
            Steven Foster
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: