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

**URL:** <https://community.jenkins.io/t/is-there-a-correspondence-for-branch-sources-build-strategies-named-branches-exact-name-when-using-jenkinsfile-dsl-with-multibranchpipelinejob/13775>\
**Category:** Ask a question\
**Tags:** question, jenkinsfile, pipeline\
**Created:** [March 28, 2024, 3:19pm UTC](https://community.jenkins.io/t/is-there-a-correspondence-for-branch-sources-build-strategies-named-branches-exact-name-when-using-jenkinsfile-dsl-with-multibranchpipelinejob/13775 "2024-03-28T15:19:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ynsnnn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ynsnnn/32/7604_2.png) [@Ynsnnn](https://community.jenkins.io/u/Ynsnnn)\
**Post date:** [March 28, 2024, 3:19pm UTC](https://community.jenkins.io/t/is-there-a-correspondence-for-branch-sources-build-strategies-named-branches-exact-name-when-using-jenkinsfile-dsl-with-multibranchpipelinejob/13775/1 "2024-03-28T15:19:37Z")

</div>

Jenkins setup: 2.426.3

---

<div class="post-metadata">

**Author:** ![Ynsnnn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/ynsnnn/32/7604_2.png) [@Ynsnnn](https://community.jenkins.io/u/Ynsnnn)\
**Post date:** [May 13, 2024, 8:42am UTC](https://community.jenkins.io/t/is-there-a-correspondence-for-branch-sources-build-strategies-named-branches-exact-name-when-using-jenkinsfile-dsl-with-multibranchpipelinejob/13775/2 "2024-05-13T08:42:53Z")

</div>

I still need help, please.

---

<div class="post-metadata">

**Author:** ![Valentin](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@Valentin](https://community.jenkins.io/u/Valentin)\
**Post date:** [November 7, 2024, 11:33am UTC](https://community.jenkins.io/t/is-there-a-correspondence-for-branch-sources-build-strategies-named-branches-exact-name-when-using-jenkinsfile-dsl-with-multibranchpipelinejob/13775/3 "2024-11-07T11:33:25Z")

</div>

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:

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

```
