1. 程式人生 > >安裝gerrit trigger時遇到的問題

安裝gerrit trigger時遇到的問題

安裝 gerrit trigger

報錯:

(1)xitongguanli:The connection to Gerrit is down! Check your settings and the Gerrit server.

解決方法:

xitong guan li/Gerrit Hudson Trigger

將Username 改為你的使用者名稱後,Test Connection OK,then restart.

(2)Choosing strategy:Gerrit Hudson Trigger

HTTP Status 500 - java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId

type Exception report

message java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId

description The server encountered an internal error (java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/spearce/jgit/lib/ObjectId
	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615)
	org.kohsuke.stapler.Stapler.invoke(Stapler.java:658)

解決方法:
更新hudson到最新版本並安裝最新版本的gerrit(2.5-h1)