首页 > 技术文章 > 使用jenkins构建报错:ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

Durant0420 2020-10-21 14:30 原文

背景:

在调试项目的接口自动化工程的时候,遇到一个问题,如下
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

原因分析:

  是jenkins找不到分支来拉指定的git代码,是因为github上master节点名称变更为main

解决办法:

推荐阅读