[英]Git plugin for jenkins always fetches all branches
No matter what options I use to the Jenkins git plugin it always pulls down all branches: 无论我对Jenkins git插件使用什么选项,它总是会下拉所有分支:
git fetch --no-tags --progress ssh://git@bitbucket.company.com: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
. 代替
refs/heads/*:refs/remotes/origin/*
我期望它只是做一些事情: +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. 在屏幕截图中,我将“ master”用作要获取的分支,如果您使用的是其他分支,请根据需要进行更新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.