我正在摸着这个。当有新的拉取请求时,我的一个PR构建器被触发但是它仍然失败了ERROR:Publisher com.cloudbees.jenkins.GitHubCommitNotifier。我像其他2个拉取请求构建器一样“编写并推送”到此存储库,这些构建器在其他2个存储库上正常工作。有没有人遇到同样的问题?谢谢,
插件版本:
git v2.3.4,GitHub API v1.59,GitHub v1.10,Github Pull Request Builder v1.16-8
错误日志:
...
在GitHub上为https://github.com/Company/repos-one/commit/fab14d3b033743c186b66abcda8ba0a00f70f73c
设置提交状态
01:06:44在GitHub上为https://github.com/Company/repos-one/commit/fab14d3b033743c186b66abcda8ba0a00f70f73c
设置提交状态01:06:44错误:发布商com.cloudbees.jenkins.GitHubCommitNotifier因异常而中止
01:06:44 java.io.FileNotFoundException:api.github.com/repos/Company/repos-one/statuses/fab14d3b033743c186b66abcda8ba0a00f70f73c
01:06:44 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
01:06:44 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
01:06:44 org.kohsuke.github.Requester.parse(Requester.java:383)
01:06:44在org.kohsuke.github.Requester._to(Requester.java:185)
01:06:44在org.kohsuke.github.Requester.to(Requester.java:160)
01:06:44在org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:702)
01:06:44 at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:714)
01:06:44在com.cloudbees.jenkins.GitHubCommitNotifier.updateCommitStatus(GitHubCommitNotifier.java:127)
01:06:44在com.cloudbees.jenkins.GitHubCommitNotifier.perform(GitHubCommitNotifier.java:84)
01:06:44 at hudson.tasks.BuildStepMonitor $ 1.perform(BuildStepMonitor.java:20)
01:06:44 at hudson.model.AbstractBuild $ AbstractBuildExecution.perform(AbstractBuild.java:780)
01:06:44 at hudson.model.AbstractBuild $ AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:744)
01:06:44在hudson.model.Build $ BuildExecution.post2(Build.java:183)
01:06:44 at hudson.model.AbstractBuild $ AbstractBuildExecution.post(AbstractBuild.java:693)
01:06:44在hudson.model.Run.execute(Run.java:1770)
01:06:44在hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
01:06:44在hudson.model.ResourceController.execute(ResourceController.java:89)
01:06:44在hudson.model.Executor.run(Executor.java:240)
01:06:44断开与VPN服务的连接。
01:06:44 sudo:没有tty存在且没有指定askpass程序
01:06:44使用url company.ci.cloudbees.com/job/HL-Pull-Request-Builder/7/将56b8b7a5d0595d321c46cd3450c6a68873a97480的状态设置为FAILURE,并显示消息:已合并构建完成。
01:06:44完成:失败
答案 0 :(得分:1)
由于没有推送到存储库的用户的授权令牌而导致的问题。删除那些解决它的令牌