jenkins - 詹金斯:无法初始化类 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.url>/computer/
之后它再次工作。
推荐阅读
- python - Adding a new column based on other columns and rows
- javascript - 在没有键的情况下调用 JSON 的元素
- inheritance - 如何使用另一个类的对象访问类中的方法?
- c# - 找不到媒体和设备对象或命名空间
- database - postgresql 适合组织文档吗?
- amazon-web-services - 是否可以根据用户参数输入自动生成 amazon lex 聊天机器人?
- c# - Xamarin.Forms NotifyPropertyChanged 不会更新现有项目 (Android)
- javascript - 设计模式 - 编写 API 包装库(打字稿)
- matlab - 如何在 matlab 中将用户输入功能与这个基本数字排序器结合起来?
- android - Firebase dataSnapshot 如何访问值