I started investigating the GitSCM class in Jenkins, so I see the parameters it takes in the constructor.
There's only one thing I don't understand:
The branches
parameter is of type: List<BranchSpec> branches
.
My question is: why does it take a list of branches? why would I checkout a list of branches in the checkout
step?