I have two branches on BitBucket: master
and develop
. I\'ve also got a BitBucket Team Folder job configured on my Jenkins server to build that reposito
The problem is that Jenkins is defining the origin
with only the branch that is discovered.
@swoop81 answer is working but if you just want to checkout one branch, you could fetch only this one.
git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/
git fetch --no-tags https:// +refs/heads/:refs/remotes/origin/