In the section "Managing source codes" you would choose the Git option, there is the option "Branches" to create a mention only about the branch that you want to build, for example. Foo

In addition, Jenkins has a GitHub Branch plugin that allows you to add branch restrictions and provides greater control over branches and how to create specific branches, you can find this option in trigger events → Branch restrictions

Hope this helps :)
source share