Introduction
When you want Jenkins to build code from a specific branch in your source control, you use branch selection and branch specifiers. This tells Jenkins exactly which branch to use for building and testing your project.
When you want to build the main branch to deploy the latest stable code.
When you want to test a feature branch before merging it into the main branch.
When you want to build a release branch for preparing a new version.
When you want Jenkins to automatically build pull requests from contributors.
When you want to run different jobs for different branches in the same repository.