jenkins拉取github代码报错问题解决

问题起因:
踩坑踩坑
用jenkins拉取github项目的代码时,配置完成点击构建时,报错信息为:Couldn't find any revision to build. Verify the repository and branch configuration for this job.

解决方式:
jenkins拉取git项目时,默认使用的主分支是master,gitee项目的默认主分支是master,github项目的主分支是main,所以拉取github项目就会报错
将master改成main

posted @ 2024-04-16 22:48  cherish-github123  阅读(315)  评论(0编辑  收藏  举报