本文主要是介绍Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题现象:在jenkins的使用过程中,创建好项目后,执行构建的后,任务失败,查询控制台输出打印如下:
错误提示为:ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
问题原因:Jenkins调用git时用了默认的*/master,而gitlab默认使用的是main,打开工贸处配置文件查询如下:
解决办法:将master修改成main即可,验证结果如下:
这篇关于Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!