无法将结果推送到gitHub-Jenkins(自由式项目)

时间:2018-07-11 23:44:36

标签: testing jenkins github

尝试配置Freestyle项目,该项目将拉出pull-request当前使用的所有分支并对其进行测试。我已经完成了脚本设置,但是无法将测试结果发布回github,我尝试使用post-build action GitHub PR:命令发布注释和标签,它们继续失败,并出现以下错误:< / p>

注意:我没有为此项目配置webhooks,也不打算添加它们。并且jenkins服务器在本地托管,并使用反向iis代理为本地服务器上的所有用户设置自定义域。

ERROR: Build step failed with exception java.lang.NullPointerException at org.jenkinsci.plugins.github.pullrequest.utils.JobHelper.getGhRepositoryFromPRTrigger(JobHelper.java:161) at org.jenkinsci.plugins.github.pullrequest.utils.JobHelper.getGhIssue(JobHelper.java:173) at org.jenkinsci.plugins.github.pullrequest.publishers.impl.GitHubPRLabelAddPublisher.perform(GitHubPRLabelAddPublisher.java:56) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635) at hudson.model.Run.execute(Run.java:1819) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Build step 'GitHub PR: add labels' marked build as failure

0 个答案:

没有答案