Java 25 and community plugin maintainers initiative

96 views
Skip to first unread message

Mark Waite

unread,
Aug 11, 2025, 11:31:39 AMAug 11
to Jenkins Developers
In February, I sent a message proposing the community plugin maintainers initiative  as a way to accelerate larger improvements within the Jenkins project.  Thanks to all those who have provided feedback and comments.

We plan to use the September 16, 2025 release of Java 25 as the first project in the community plugin maintainers initiative.  The Jenkins project wants to support Java 25 soon after its release and that is expected to require improvements to Jenkins core, Jenkins plugins, and Jenkins development tooling.

Plugins are included in the community plugin maintainer initiative by default.  Plugin maintainers may choose to not participate in the community plugin maintainers initiative.  Community plugin maintainers will honor that choice.  Plugins that are not participating in the initiative will rely on plugin maintainers to merge pull requests that are part of a plugin maintenance project.

Plugin maintainers opt out of this initiative by making a repository permissions updater entry for their plugin.  The entry looks like this:

communityPluginMaintainers: false

When a plugin maintainer opts out of the initiative, the community plugin maintainers will still provide pull requests to complete the plugin maintenance project.  They will expect that the plugin maintainer will review the pull request, merge it, and release it.

A pull request to the repository permissions updater has been submitted to show the technique

Thanks,
Mark Waite

Oleg Nenashev

unread,
Aug 22, 2025, 11:17:54 AMAug 22
to Jenkins Developers
Hello,

Am I correct to interpret that non-plugin repositories are NOT included by default? 
For example, Jenkinsfile Runner or Custom War Packager from what I see on my list in https://github.com/jenkins-infra/repository-permissions-updater 

P.S: Just in case, +1 for Community Plugin Maintainers working on plugins where I am listed as a maintainer. I have not returned from sabbatical yet, and not all "my" plugins put for adoption have been adopted yet.

Best regards,
Oleg

Mark Waite

unread,
Aug 22, 2025, 11:35:44 AMAug 22
to jenkin...@googlegroups.com
On Fri, Aug 22, 2025 at 9:18 AM Oleg Nenashev wrote:

> Am I correct to interpret that non-plugin repositories are NOT included by default?
> For example, Jenkinsfile Runner or Custom War Packager from what I see on my list in https://github.com/jenkins-infra/repository-permissions-updater

That's correct. Supporting Java 25 will probably require changes in
non-plugin repositories (like Jenkins core, Stapler, Winstone, etc.),
but those changes won't be tracked in the community plugin maintainers
initiative.

Thanks!
Mark Waite

Ullrich Hafner

unread,
Sep 23, 2025, 11:45:04 AM (8 days ago) Sep 23
to Jenkins Developers
Now that Java 25 is available, I started to enable Java 25 for my plugin builds and it looks quite promising for the simpler ones (API libraries). The complex ones that have integration test with the workflow CPS plugin currently fail with Java 25. It seems that my pipeline steps are not found when I build with Java 25:

[Pipeline] End of Pipeline
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 0215aec7-4f58-4787-ac04-9f74e4992dc6
java.lang.NoSuchMethodError: No such DSL method 'discoverReferenceBuild' found among steps [archive, ..., zip] or globals [currentBuild, env, params, pipeline, scm]
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:219)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:124)

Has anyone tried to get such tests running with Java 25 as well?
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtGHz6c5WbLx9tA2RO5RUZEBQvi9TouMng8XLXtgH9KTsA%40mail.gmail.com.

Jesse Glick

unread,
Sep 23, 2025, 2:58:45 PM (8 days ago) Sep 23
to jenkin...@googlegroups.com
On Tue, Sep 23, 2025 at 11:45 AM Ullrich Hafner <ullrich...@gmail.com> wrote:
my pipeline steps are not found when I build with Java 25:

java.lang.NoSuchMethodError: No such DSL method 'discoverReferenceBuild' found among steps [archive, ..., zip] or globals [currentBuild, env, params, pipeline, scm]
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:219)

Curious; `workflow-cps-plugin` tests pass for me on Java 25 (albeit with warnings about JNA and XStream). 

Ullrich Hafner

unread,
Sep 27, 2025, 4:59:45 PM (4 days ago) Sep 27
to Jenkins Developers
Hmm, I don’t get any warnings in the test case. Is there an option to enable some more logging for the Jenkins startup when the test rule is starting?
What is also strange: the test fails when running in the IDE with Java 21 as well (when the project has been built with Java 25 on the command line).

I tried with a very simple test:
@WithJenkins
public class Java25ITest {
private JenkinsRule jenkins;

@BeforeEach
public void setUp(final JenkinsRule jenkins) {
this.jenkins = jenkins;
}

@Test
void shouldOverwriteReferenceBuild() throws Exception {
var reference = jenkins.createProject(WorkflowJob.class);
reference.setDefinition(new CpsFlowDefinition(
"""
node {
echo 'Hello Job';
discoverReferenceBuild();
}
""", true));
jenkins.buildAndAssertSuccess(reference);
}
}
The logger does not print anything interesting:
   0.041 [id=1] INFO o.jvnet.hudson.test.WarExploder#explode: Picking up existing exploded jenkins.war at /Users/hafner/git/warnings-ng-plugin-devenv/forensics-api/target/jenkins-for-test
   0.223 [id=1] INFO o.jvnet.hudson.test.JenkinsRule#createWebServer2: Running on http://localhost:55255/jenkins/
   0.279 [id=1] INFO jenkins.model.Jenkins#<init>: Starting version 2.516.3
   0.329 [id=50] INFO jenkins.InitReactorRunner$1#onAttained: Started initialization
   1.080 [id=65] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
   1.091 [id=49] INFO j.b.api.BouncyCastlePlugin#start: /Users/hafner/git/warnings-ng-plugin-devenv/forensics-api/target/tmp/j h12347251479471561382/plugins/bouncycastle-api/WEB-INF/optional-lib not found; for non RealJenkinsRule this is fine and can be ignored.
   1.717 [id=62] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
   1.721 [id=67] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
   1.721 [id=69] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
   2.243 [id=69] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
   2.244 [id=48] INFO jenkins.InitReactorRunner$1#onAttained: System config adapted
   2.244 [id=48] INFO jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
   2.247 [id=48] INFO jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
   2.262 [id=51] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
   2.992 [id=1] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Stopping Jenkins
   3.027 [id=1] INFO hudson.lifecycle.Lifecycle#onStatusUpdate: Jenkins stopped
   3.046 [id=1] INFO o.j.h.t.TemporaryDirectoryAllocator#dispose: deleting /Users/hafner/git/warnings-ng-plugin-devenv/forensics-api/target/tmp/j h12347251479471561382

java.lang.AssertionError: unexpected build status; build log was:
------
Started
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /Users/hafner/git/warnings-ng-plugin-devenv/forensics-api/target/tmp/j h12347251479471561382/workspace/test0
[Pipeline] {
[Pipeline] echo
Hello Job
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: d82886aa-8ae5-4d59-b445-7519a5fe5e0a
java.lang.NoSuchMethodError: No such DSL method 'discoverReferenceBuild' found among steps [archive, bat, 




--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages