Jenkins - Git fetch 未取得任何分支

Jenkins - Git fetch 未取得任何分支

新設定的詹金斯不掃描任何分支。我也嘗試了全域信用和多管道信用。信用資訊是常規的 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。一旦我添加了它,它就開始工作了。

在此輸入影像描述

相關內容