Process Flow - Branch selection and branch specifier
Start Jenkins Pipeline
Read Branch Specifier
Check Branch Exists?
No→Fail or Wait
Yes
Checkout Branch
Run Pipeline Steps on Selected Branch
End Pipeline
The Jenkins pipeline reads the branch specifier, checks if the branch exists, then checks out that branch to run the pipeline steps.