Git PullRequest job failed. Couldn't find any revision to build. Verify the repository and branch configuration for this job

后端 未结 11 1502
你的背包
你的背包 2020-12-09 08:35

Yesterday my pullrequest jobs failed with the following output:

11:07:41  > git rev-parse origin/${sha1}^{commit}
11:07:41  > git rev-parse ${sha1}^{co         


        
11条回答
  •  时光说笑
    2020-12-09 09:16

    According to this Github branch default name was changed from "master" to "main".

    So, when creating new jobs for newly repositories you have to set "main" as the branch name instead of "master".

    Note that github has way to set "master" (or any other name of your convenience) as default branch name.

提交回复
热议问题