使用jenkins构建报错:ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

背景:

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

原因分析:

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

解决办法:

知道、想到、做到、得到
原文地址:https://www.cnblogs.com/Durant0420/p/13852188.html