首页 > 解决方案 > 詹金斯:无法初始化类 org.eclipse.jgit.internal.storage.file.FileSnapshot

问题描述

我突然在我的詹金斯工作之一中收到了以下堆栈跟踪。在此之前,它可以正常工作几个月。

删除工作区并不能解决问题。

一些 git 调用正在工作,但结帐失败:

Checking out Revision d8f1e31d509dd85ac6c1d8f87f7402a032d2bba2 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f d8f1e31d509dd85ac6c1d8f87f7402a032d2bba2 # timeout=10
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to servername
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
        [...]
        at hudson.model.Executor.run(Executor.java:428)
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.internal.storage.file.FileSnapshot
    at org.eclipse.jgit.storage.file.FileBasedConfig.<init>(FileBasedConfig.java:88)
    [...]
    at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: Remote call on servername failed
    at hudson.remoting.Channel.call(Channel.java:961)
    [...]
    at hudson.model.Executor.run(Executor.java:428)

标签: jenkins

解决方案


我在下的詹金斯设置中断开并重新连接了代理,<jenkins.url>/computer/之后它再次工作。


推荐阅读