[英]JGIT: FATAL: Could not initialize class org.eclipse.jgit.transport.Transport
When I use Jenkins to build my project, I got error:当我使用 Jenkins 构建我的项目时,出现错误:
Could not initialize class org.eclipse.jgit.transport.Transport
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.transport.Transport
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:120)
at org.jenkinsci.plugins.gitclient.JGitAPIImpl$2.execute(JGitAPIImpl.java:631)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:761)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1012)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
And I also get the error when I give git repository:当我提供 git 存储库时,我也会收到错误消息:
Failed to connect to repository : Command "/usr/bin/git -c core.askpass=true ls-remote -h ssh://ha.nguyen@192.168.10.13/CVS/git/Brea HEAD" returned status code 128:
stdout:
stderr: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: The remote end hung up unexpectedly
Please help me, tomorrow is my deadline.请帮帮我,明天是我的截止日期。 :(
:(
Try and restart your Jenkins, hope that will help.尝试重新启动您的 Jenkins,希望能有所帮助。
systemctl restart jenkins systemctl 重启詹金斯
service jenkins restart服务詹金斯重启
The second error message seems to inidicate something wrong with the credentials.第二条错误消息似乎表明凭据有问题。
You can try the following:您可以尝试以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.