詹金斯版本:1.642.4 插件:Selenium Plugin 2.53.1
我已经更新了Selenium插件(5.4.1 => 2.53.1),但在Jenkins重新启动后,我没有看到菜单" Selenium Grid"。 Selenium插件不在Installed插件中。 我只在可用菜单中看到它。
当我尝试安装它时(v2.53.1)我收到此错误:
java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1328)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1126)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Failed to install selenium plugin
at hudson.PluginManager.dynamicLoad(PluginManager.java:485)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1324)
... 5 more
Caused by: java.io.IOException: Unable to load hudson.plugins.selenium.PluginImpl from selenium
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:424)
at hudson.PluginManager.dynamicLoad(PluginManager.java:476)
... 6 more
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at java.lang.Class.newInstance(Class.java:379)
at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:418)
... 7 more
Caused by: java.lang.IllegalStateException: attempt to register a second PermissionGroup for hudson.plugins.selenium.PluginImpl
at hudson.security.PermissionGroup.register(PermissionGroup.java:135)
at hudson.security.PermissionGroup.<init>(PermissionGroup.java:59)
at hudson.plugins.selenium.PluginImpl.<clinit>(PluginImpl.java:99)
... 13 more
我认为旧的插件没有正确删除,但我在“已安装”菜单中没有看到它。
由于
于连
答案 0 :(得分:0)
我通过删除旧的ownship.xml配置文件并安装插件来解决此问题。然后它工作。因为我想安装作业和所有权插件。
我猜有一个较旧的Selenium插件配置文件。因此,您可以尝试删除Selenium插件的配置文件。