-
Bug
-
Resolution: Won't Fix
-
Blocker
-
None
-
Jenkins 2.492.3, Pipeline plugins, Folders plugin, and Git plugin from setup wizard
The container image link plugin includes the Jenkins test harness in its packaging. Jenkins core 2.434 and later refuses to load a plugin that includes the Jenkins test harness in its packaging because the Jenkins test harness is not intended for use in a production Jenkins installation. It harms the installation and causes many unexpected issues. More details are available in the Jenkins core pull request.
The pull request to remove the test harness from the plugin was submitted in December 2023. There was no response to that pull request for over 12 months. I closed the pull request.
Since the plugin cannot load on Jenkins versions released in the last 18 months, I recommend that we deprecate the plugin and stop distributing it. As of October 2024, the plugin was only reported as being installed on 16 Jenkins controllers worldwide.
The stack trace when the plugin fails to load is:
java.lang.IllegalStateException: Refusing to load the Jenkins test harness in production (via container-image-link) at hudson.ClassicPluginStrategy.createClassLoader(ClassicPluginStrategy.java:300) at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:239) at hudson.PluginManager$1$3$1.run(PluginManager.java:471) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:304) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1144) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) at java.base/java.lang.Thread.run(Thread.java:1583)