Jenkins中构建时提示:Couldn‘t find any revision to build. Verify the repository and branch config
生活随笔
收集整理的這篇文章主要介紹了
Jenkins中构建时提示:Couldn‘t find any revision to build. Verify the repository and branch config
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
場景
Jenkins中安裝Credentials Binding插件實現憑證管理與安裝Git插件和拉取代碼構建項目:
Jenkins中安裝Credentials Binding插件實現憑證管理與安裝Git插件和拉取代碼構建項目_BADAO_LIUMANG_QIZHI的博客-CSDN博客
在按照上面的流程構建項目時流程沒有問題。
但是在使用新版的Gitlab時提示:
Couldn't find any revision to build. Verify the repository and branch config
?
注:
博客:
https://blog.csdn.net/badao_liumang_qizhi?
關注公眾號
霸道的程序猿
獲取編程相關電子書、教程推送與免費下載。
實現
這是因為最新的gitlab的默認分支不再是master,而是main分支
然后在Jenkins中指定分支默認還是master
然后將其修改為main
再次構建成功
?
總結
以上是生活随笔為你收集整理的Jenkins中构建时提示:Couldn‘t find any revision to build. Verify the repository and branch config的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Docker中部署Mysql8数据库
- 下一篇: 若依前后端分离版怎样去掉登录验证码