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

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

    I had the same problem. TIn my case, the cause was that I used a github repository that was a mirror of an svn repository (because svn is not properly supported by SonarCloud). The default in Jenkins was */master. The solution (found by Gavin McDonald of Apache INFRA) was to use */trunk. Another problem is the ".git" in the URL, that should not be used.

提交回复
热议问题