Is there a correspondence for Branch sources --> Build strategies --> Named branches (exact name) when using Jenkinsfile DSL with multibranchPipelineJob?

Jenkins setup: 2.426.3

I still need help, please.

Hello,

I don’t know if it’s really what you are looking for and if it’s still relevant, but you can try something like this:

multibranchPipelineJob('job') {
    branchSources {
        branchSource {
            buildStrategies {
                buildNamedBranches {
                    filters {
                        exact {
                            name('name')
                        }
                    }
                }
            }
        }
    }
}