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

后端 未结 11 1582
你的背包
你的背包 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:18

    Whenever we don't specify a correct branch to pull, the git will look for all the branches that repository has and end up throwing an error saying "Couldn't find any revision to build. Verify the repository and branch configuration for this job."

    I had faced the same issue with my git pull and i was using jenkins to specify the configuration.

    If we leave it to blank, it would get the files from master branch, but if something is wrong or a typo is there, it would look for all branches and throw error saying branch not found.

提交回复
热议问题