buildStrategies are not set when using jobDSL,

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

XMLWordPrintable

      Given this jobDSL definition:

      multibranchPipelineJob("${args.jobName}") {
        description("Multibranch job")
        branchSources{
          branchSource {
            source {
              github {
                id("${args.jobName}-gh-branches-1")
                scanCredentialsId("####")
                checkoutCredentialsId("####")
                repoOwner('####')
                repository("${args.repositoryName}")
      
                includes("main jira-*")
              }
            }
            buildStrategies {
              includeRegionBranchBuildStrategy {
                  includedRegions("${args.project}/**")
              }                      
            }
          }
        }
        factory {
          workflowBranchProjectFactory {
            scriptPath("${args.project}/Jenkinsfile")
          }
        }
      } 

      The generated jobs have no build strategy set:

      The multibranch-build-strategy-extension plugin is installed (same result using strategies from basic-branch-build-strategies plugin) and I can manually add the strategy.

            Assignee:
            Unassigned
            Reporter:
            Aitor Pazos
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: