In Jenkins Multibranch Pipeline, what is the main purpose of branch indexing?
Think about what Jenkins needs to do before it can build branches.
Branch indexing scans the source repository to find branches and creates Jenkins jobs for each branch so they can be built separately.
What output would you expect to see in Jenkins logs after a successful branch indexing scan?
Started branch indexing
Found branches: feature1, bugfix2
Created jobs for branches
Finished branch indexingLook for messages about scanning and job creation, not building or errors.
The branch indexing log shows scanning started, branches found, jobs created, and indexing finished.
Which configuration snippet correctly sets branch indexing to run every 15 minutes in a Jenkinsfile?
Branch indexing frequency is set via pipeline triggers with cron syntax.
Using properties([pipelineTriggers([cron('H/15 * * * *')])]) sets the branch indexing to run every 15 minutes.
After adding new branches to the repository, Jenkins Multibranch Pipeline does not detect them during branch indexing. What is a likely cause?
Think about access rights Jenkins needs to see branches.
If Jenkins cannot read the new branches due to credential permission issues, it will not detect them during indexing.
Put the following Jenkins branch indexing steps in the correct order.
Think about discovery first, then job creation, then triggers, then finishing.
Jenkins first scans the repo, creates or updates jobs, runs triggers, then finishes indexing.