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.
Finished: FAILURE

后来才知道是jenkins任务配置错了,详细看下面图,把master修改为main就不会报错了