从Github构建失败

时间:2012-07-12 01:06:10

标签: jenkins jenkins-plugins

我们目前正在为我们的rails应用程序设置CI。代码托管在github上。到目前为止,一切都变得非常顺利,我们怎么遇到代码推送到github的问题导致在代码被检出之前构建失败。

这是Jenkins的输出:

Started by user Jeremy Rottman
Building in workspace /var/lib/jenkins/jobs/SweetyHigh-Staging/workspace
Checkout:workspace / /var/lib/jenkins/jobs/SweetyHigh-Staging/workspace - hudson.remoting.LocalChannel@46ffed1d
Using strategy: Default
Last Built Revision: Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from git@github.com:Sweety-High/sweetyhigh.git
Commencing build of Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
Checking out Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
hudson.util.IOException2: Failed to parse changelog
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:600)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1488)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)

Caused by: java.lang.NullPointerException
at jenkins.plugin.assembla.AssemblaSCMListener.onChangeLogParsed(AssemblaSCMListener.java:32)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:598)
... 6 more

完成:失败

1 个答案:

答案 0 :(得分:2)

日志显示您已安装Assembla plugin,并且由于该插件中存在错误(NullPointerException),您的构建失败。

简单地看一下源代码,看起来它失败了,因为你已经安装了插件,但是没有在全局Jenkins配置中配置任何Assembla站点。

我将此错误归档为JENKINS-14431