今天開發找我說jenkins構建不了,我上去查看了一下,和之前沒區別,詢問后說是新增加了2個分支導致無法構建
本人猜想是不是權限問題,然后改了權限還是不行
報錯如下
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress http://xxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 1: stdout: stderr: error: there are still refs under 'refs/remotes/origin/feature'
想着之前沒有問題,現在增加分支不應該出什么問題
果斷的直接在jenkins服務器上刪除整個項目目錄
搞定!
猜想,應該是項目的本地的.git文件出問題!!