2012-07-12 75 views
0

我們目前正在爲我們的rails應用程序設置CI。該代碼託管在github上。到目前爲止,所有事情都非常順利,我們怎麼會遇到代碼被推到github上的問題導致構建失敗,甚至在代碼被檢出之前。構建自Github失敗

這是詹金斯輸出:

Started by user Jeremy Rottman 
Building in workspace /var/lib/jenkins/jobs/SweetyHigh-Staging/workspace 
Checkout:workspace//var/lib/jenkins/jobs/SweetyHigh-Staging/workspace - [email protected] 
Using strategy: Default 
Last Built Revision: Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master) 
Fetching changes from 1 remote Git repository 
Fetching upstream changes from [email protected]: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 

成品:未能

回答

2

日誌表明您已經安裝了Assembla plugin和你的構建,因爲在插件中的一個錯誤是失敗(一NullPointerException )。

從簡短的源代碼看,它看起來像是失敗了,因爲你已經安裝了插件,但沒有在全局Jenkins配置中配置任何Assembla站點。

我將此錯誤提交爲JENKINS-14431