I'm having this same issue and I am pre-installing the plugins in a custom Docker image, trying to avoid issues with plugins dependencies. This issue is, as mentioned above, is that the "plugins" directory in JENKINS_HOME, if using a persistent Docker volume, has the old .jpi versions of the plugin and Jenkins is now throwing an error. Something seems to have changed between I'd say 2.361.1 and 2.361.3 because this is new.
On Thursday, October 13, 2022 at 10:50:54 PM UTC-6 Richard Bywater wrote: > Have you read the Preinstalling plugins section on the Docker image > documentation? > https://github.com/jenkinsci/docker/blob/master/README.md#preinstalling-plugins > > Richard. > > On Fri, 14 Oct 2022 at 08:17, Vladimir <thewor...@gmail.com> wrote: > >> I have a server which periodically I want to update. I've moved >> JENKINS_HOME directory to a separate disk volume. Configuration for server >> saved as yaml file CASC, jobs and history also stored inside the volume. >> And I run Jenkins server as a Docker container. >> I expected that if I will provide an updated docker image with the new >> Jenkins version and updated plugins it will just load jobs and >> configuration and will work. And it did work for some time. But recently I >> stumbled on an error like this. >> >> - Update required: commons-lang3 v3.x Jenkins Api Plugin >> (commons-lang3-api 3.12.0.0) to be updated to 3.12.0-36.vd97de6465d5b_ or >> higher >> jenkins | at >> hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994) >> jenkins | at hudson.PluginManager$2$1$1.run(PluginManager.java:542) >> >> >> The issue is that plugins are also stored in JENKINS_HOME directory and a >> new Jenkins version in the docker image was not able to start with old >> plugins. >> I expected that I will be able to tell Jenkins where to look for plugins >> so only jobs, config, history and other configurations will be loaded from >> the attached volume but Jenkins itself will use updated plugins from the >> inside image. >> I've tried this property hudson.PluginManager.workDir >> https://www.jenkins.io/doc/book/managing/system-properties/#hudson-pluginmanager-workdir >> >> but it is not working >> Jenkins still trying to look inside JENKINS_HOME/plugins >> >> >> My question is it possible to point Jenkins to directly with plugins, so >> it will not pay attention to JENKINS_HOME/plugins ? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-use...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/6faef0f6-d9f8-47f5-a993-ca639a4ff6ban%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/6faef0f6-d9f8-47f5-a993-ca639a4ff6ban%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/21851ded-3af9-4710-9887-500e72060d10n%40googlegroups.com.