Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 17 update for CD workflow #30

Closed
jonesbusy opened this issue May 7, 2024 · 4 comments · Fixed by #31
Closed

Java 17 update for CD workflow #30

jonesbusy opened this issue May 7, 2024 · 4 comments · Fixed by #31
Labels
enhancement New feature or request

Comments

@jonesbusy
Copy link

What feature do you want to see added?

Java version used for CD must be updated when controllers require minimum Java 17 version.

https://github.com/jenkins-infra/github-reusable-workflows/blob/main/.github/workflows/maven-cd.yml#L55

Upstream changes

No response

@jonesbusy jonesbusy added the enhancement New feature or request label May 7, 2024
@viceice
Copy link

viceice commented May 7, 2024

I think this can be easily solved by adding an optional input for the java version?

@jonesbusy
Copy link
Author

Looks it was considered already #5

Perhaps a version v2 of workflows should be sufficient

@lemeurherve lemeurherve linked a pull request May 7, 2024 that will close this issue
@lemeurherve
Copy link
Member

lemeurherve commented May 7, 2024

Opened #31 with a default JAVA_MAJOR_VERSION input set to "11" by default that can easily be set to "17" by plugin maintainers until we switch this default value to "17" when controllers will require JDK17.

This should circumvent the need for a v2.

WDYT?

@lemeurherve
Copy link
Member

As suggested by @jglick in #31 (comment), I changed the scope of my pull request to directly update Java to 17:

you should be able to build any plugin using JDK 17. The POM will effectively pass -release 11 to tools. In fact most Jenkinsfiles do not use JDK 11 at all any more (only 17 & 21), and for purposes of the CD release workflow it is even less important to run on the older JDK because the only reason to include JDK 11 in Jenkinsfile would be to run tests on 11 (in case there is some subtle behavioral difference) yet the CD workflow skips all tests.

I'll post that in the original jenkinsci-dev mailing list thread at https://groups.google.com/g/jenkinsci-dev/c/11P2B9s67tw/m/buquLnLeAwAJ for additional reviews and see if there is any objection.

@timja timja closed this as completed in #31 May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants