No matter what options I use to the Jenkins git plugin it always pulls down all branches:
git fetch --no-tags --progress ssh://[email protected]:7999/project/repo.git +refs/heads/*:refs/remotes/origin/* --depth=5
Instead of refs/heads/*:refs/remotes/origin/* I was expecting it to just do something like: +refs/heads/master:refs/remotes/origin/master. Configuration is as per screen shot.

Click the 'Advanced' button under the credentials field, and then update as per screen shot.

In the screen shot I have used 'master' as the branch I want to fetch, if you are using a different branch then update as appropriate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With