Jenkins 重启后报告插件的循环依赖错误,现在无法启动

BLa*_*ang 8 jenkins jcasc

我们重新启动了 jenkins LTS 2.303.3(使用 JCaSC 插件重新启动后会重新下载所有插件),并在日志中看到以下错误:

2022-07-27 17:59:00.565+0000 [id=31] SEVERE hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:configuration-as-code -> Plugin:sshd
2022-07-27 17:59:00.569+0000 [id=31] SEVERE hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:configuration-as-code -> Plugin:sshd
2022-07-27 17:59:00.570+0000 [id=31] SEVERE hudson.PluginManager$1$3$2$1#reactOnCycle: found cycle in plugin dependencies: (root=Plugin:sshd, deactivating all involved) Plugin:sshd -> Plugin:mina-sshd-api-core -> Plugin:ssh-credentials -> Plugin:credentials -> Plugin:configuration-as-code -> Plugin:trilead-api -> Plugin:sshd
Run Code Online (Sandbox Code Playgroud)

奇怪的是,Jenkins 无法启动,并且我们没有更改插件的任何版本。

BLa*_*ang 6

经过一番挖掘,mina-sshd-api-core 插件似乎存在问题:https://issues.jenkins.io/browse/JENKINS-69034此链接指出您可以通过将配置升级为代码插件来修复,但这并没有解决我们的问题。

我们将 mina-sshd-api-core 插件降级到以下版本,以使我们的实例恢复并运行。

工作版本:mina-sshd-api-core:2.8.0-18.vd98674ecd652