jenkinsci / parallel-test-executor-plugin

Parallel test executor plugin
https://plugins.jenkins.io/parallel-test-executor/
50 stars 55 forks source link

Test with Java 21, require Jenkins 2.387.3 or newer #270

Closed MarkEWaite closed 9 months ago

MarkEWaite commented 10 months ago

Test with Java 21, review Jenkins 2.387.3 or newer

Java 21 was released Sep 19, 2023. We want to announce full support for Java 21 in November and would like the most used plugins to be compiled and tested with Java 21.

The acceptance test harness and plugin bill of materials tests are already passing with Java 21. This is a further step to improve plugin readiness for use with Java 21 and for development with Java 21.

The change intentionally tests only two Java configurations, Java 17 and Java 21 because the risk of a regression that only affects Java 11 is low. We generate Java 11 byte code with the Java 17 and the Java 21 builds, so we're already testing Java 11 byte code.

This pull request also updates the minimum Jenkins version from 2.361.4 to 2.387.3. I'm willing to revert that change if it is a blocker that prevents this from being merged.

Also includes or supersedes pull requests:

Testing done

Confirmed tests pass with Java 21 on Linux.

Submitter checklist

MarkEWaite commented 9 months ago

@jglick or @vlatombe could you merge this so that we're testing with Java 21? No need for a new release, just merge