Jenkins-Git fetch 未获取任何分支

Jenkins-Git fetch 未获取任何分支

新设置的 jenkins 不会扫描任何分支。我也尝试了全局凭据和多管道凭据。凭据是常规 http 用户名和密码。

在此处输入图片描述

以下是日志:

Started
[Tue Dec 08 16:12:29 UTC 2020] Starting branch indexing...
 > git --version # timeout=10
 > git --version # 'git version 2.11.0'
using GIT_ASKPASS to set credentials 
 > git ls-remote --symref -- https://gitlab.com/myusername/techworld-js-docker-demo-app.git # timeout=10
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://gitlab.com/myusername/techworld-js-docker-demo-app.git
 > git config remote.origin.url https://gitlab.com/myusername/techworld-js-docker-demo-app.git # timeout=10
Fetching & pruning origin...
Fetching upstream changes from origin
 > git --version # timeout=10
 > git --version # 'git version 2.11.0'
 > git config --get remote.origin.url # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress --prune -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
[Tue Dec 08 16:12:36 UTC 2020] Finished branch indexing. Indexing took 7 sec
Finished: SUCCESS

答案1

问题是我只选择了Filter by name (regex)但没有选择Discover branches。添加后,它就开始工作了。

在此处输入图片描述

相关内容