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

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

    I came across the same issue and spent 4 hours into it but finally got it resolved.

    In my case, error was because of wrong Git exe. Inside Jenkins, while setting Git exe path on windows, set the path under cmd folder

    In my case it was C:\Program Files\Git\cmd\git.exe

    It resolved my issue.

提交回复
热议问题