lvxianchao / notes

狗屁不通瞎写的博客
https://coderlxc.com
1 stars 0 forks source link

Jenkins 报错:hudson.AbortException: Couldn't find any revision to build. Verify the repository and branch configuration for this job. #36

Open lvxianchao opened 2 years ago

lvxianchao commented 2 years ago

Jenkins 使用流水线来构建任务时,从 Gitlab 拉取代码失败,报错如标题,原因是因为 Gitlab 上没有 master 分支,已经变成了 main 分支,把脚本里的分支名称修改过来即可。