Actually it is only supported for branchSource : BranchSourcesContext that i can use with multibranchPipelineJob but not with organizationFolder
Workaround is make the change manually and look into the generated xml to manuipulate the xml via configure block {code:java} organizationFolder('my-project') { .... configure { // see def buildStrategies = it / buildStrategies buildStrategies << 'jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl' { ignoreTargetOnlyChanges true } buildStrategies << 'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl' { filters { 'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' { name 1902 caseSensitive false } 'jenkins.branch.buildstrategies.basic.NamedBranchBuildStrategyImpl_-ExactNameFilter' { name 1907 caseSensitive false } } } } } {code}
Actually it is only supported for branchSource : BranchSourcesContext that i can use with multibranchPipelineJob but not with organizationFolder
Workaround is make the change manually and look into the generated xml to manuipulate the xml via configure block {code:java} organizationFolder('my-project') { ...