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

后端 未结 11 1544
你的背包
你的背包 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条回答
  •  -上瘾入骨i
    2020-12-09 09:01

    Sometimes the branch name specified in the jenkins and repository are different. In my case jenkins set Master as a default branch in jenkins. But my actual branch is main. Which costs me over two hours of my time to identify. I didn't change it as jenkins sets it default. Errormain But it is the error. So first verify the branch name in your repository and the branch name in jenkins if you get this error.

提交回复
热议问题