Recommendations for updating minimum Jenkins version on plugin

105 views
Skip to first unread message

Jamie Tanna

unread,
Apr 13, 2022, 3:31:34 PM4/13/22
to Jenkins Developers
Hey folks,

I'm getting around to some maintenance on job-dsl and was wondering about updating the minimum Jenkins version used.

Currently we use v2.176, which was released in 2019.

I see from the Plugin / Core versions matrix that there's a good spread of versions of the plugin vs version of Jenkins.

I'd like to update it to something much more recent, but was wondering if y'all had any thoughts on the best way to update this to a reasonable version?

Basil Crow

unread,
Apr 13, 2022, 3:33:54 PM4/13/22
to jenkin...@googlegroups.com
The Choosing a Jenkins version to build against page in the developer documentation should cover this.

Jamie Tanna

unread,
Apr 13, 2022, 3:52:13 PM4/13/22
to Jenkins Developers
That's amazing, thanks! 🙌

Mark Waite

unread,
Apr 13, 2022, 3:57:19 PM4/13/22
to jenkinsci-dev
Based on the stats data that you linked, 90% of the installations of the most recent release are using Jenkins 2.319.1 or newer.  Those people who are upgrading regularly are also upgrading their Jenkins core.  I think you can very reasonably choose to require Jenkins 2.319.1 and have very few users that are disrupted.

Jenkins 2.319.1 is a good base version as well because there are security fixes in Jenkins 2.319.2 and 2.319.3 that should motivate users to upgrade from older versions to at least the 2.319.x line

Jamie Tanna

unread,
Oct 10, 2022, 4:01:19 AM10/10/22
to Jenkins Developers
Thanks Mark, appreciate the help!

Finally gotten around to this in earnest (PR) but I'm getting a fair few failing tests that I wasn't expecting - in particular:

Error
java.io.FileNotFoundException: lib/remoting-4.5.jar
Stacktrace
java.io.FileNotFoundException: lib/remoting-4.5.jar
    at hudson.model.Slave$JnlpJar.getURL(Slave.java:434)
    at org.jvnet.hudson.test.JenkinsRule.createComputerLauncher(JenkinsRule.java:1091)
    at org.jvnet.hudson.test.JenkinsRule.createSlave(JenkinsRule.java:1055)
    at org.jvnet.hudson.test.JenkinsRule.createSlave(JenkinsRule.java:1048)
    at javaposse.jobdsl.plugin.ScriptRequestGeneratorSpec.setupSpec(ScriptRequestGeneratorSpec.groovy:46)

And a fair few:

Error
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://localhost:34467/jenkins/static/f24aa41b/scripts/polyfills.js
Stacktrace
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 404 Not Found for http://localhost:34467/jenkins/static/f24aa41b/scripts/polyfills.js

Would it be best to create a new conversation to chat about this and request support / is there a better place I can see if anyone can give a hand with it?

Daniel Beck

unread,
Oct 10, 2022, 4:50:11 AM10/10/22
to jenkin...@googlegroups.com
On Mon, Oct 10, 2022 at 10:01 AM Jamie Tanna <jamie...@gmail.com> wrote:

Would it be best to create a new conversation to chat about this and request support / is there a better place I can see if anyone can give a hand with it?

Please note that the vast majority of plugins are built with Maven, so expertise on Gradle JPI Plugin isn't as readily available.
Reply all
Reply to author
Forward
0 new messages