Introduction
When you have many branches in your source code repository, Jenkins needs a way to find and manage them automatically. Branch indexing and scanning help Jenkins discover new branches and update existing ones so it can build them without manual setup.
When you want Jenkins to automatically detect new branches pushed to your Git repository and create jobs for them.
When you want to keep Jenkins jobs updated with changes in branch names or deletions.
When you manage multiple feature branches and want Jenkins to build each branch separately.
When you want to save time by avoiding manual job creation for every new branch.
When you want Jenkins to scan your repository regularly to keep branch jobs in sync.