Github Pull Request Builder - 无法触发构建,无法在github commit上设置构建状态

时间:2014-09-22 00:21:31

标签: github jenkins jenkins-plugins

我正在使用GitHub pull request builder plugin为每次拉取请求设置构建。

但是,对于拉取请求中的任何新拉取请求或新提交,都不会触发此构建。 Jenkins日志上几乎没有例外。根据那些日志,我不知道出了什么问题。

提前致谢。

Sep 22, 2014 12:10:52 AM SEVERE org.jenkinsci.plugins.ghprb.GhprbTrigger getBuilds
The ghprb trigger for keeper-pull-request wasn't properly started - helper is null
Sep 22, 2014 12:10:52 AM WARNING hudson.model.listeners.RunListener report
RunListener failed
java.lang.NullPointerException
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:19)
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:12)
    at hudson.model.listeners.RunListener.fireStarted(RunListener.java:213)
    at hudson.model.Run.execute(Run.java:1702)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:232)

Sep 22, 2014 12:10:54 AM INFO jenkins.plugin.assembla.AssemblaProjectProperty$DescriptorImpl getSites
Called getSites size=0
Sep 22, 2014 12:11:00 AM WARNING hudson.triggers.Trigger checkTriggers
org.jenkinsci.plugins.ghprb.GhprbTrigger.run() failed for hudson.model.FreeStyleProject@17c57009[keeper-pull-request]
java.lang.NullPointerException
    at org.jenkinsci.plugins.ghprb.GhprbTrigger.run(GhprbTrigger.java:140)
    at hudson.triggers.Trigger.checkTriggers(Trigger.java:266)
    at hudson.triggers.Trigger$Cron.doRun(Trigger.java:214)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:662)

1 个答案:

答案 0 :(得分:15)

最后,问题是我没有在作业配置中设置Github project字段。

在对那个领域进行信任之后,一切运作良好。