jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.43k stars 613 forks source link

[JENKINS-73135] Require Jenkins 2.472, adapt tests for Jetty 12 EE 8 #1678

Closed ampuscas closed 1 month ago

ampuscas commented 1 month ago

JENKINS-73135 - Require Jenkins 2.472 or newer, adapt tests for Jetty 12 EE 8

Testing done

Automated tests pass on Linux with Java 21.

Submitter checklist

MarkEWaite commented 1 month ago

Thanks for the pull request @ampuscas . I pushed two changes to the pull request so that it compiles and passes tests on my local installation. The comments in the changes should explain why I thought they would help. Refer to:

MarkEWaite commented 1 month ago

@krisstern I think that we should increment the minor number from 1.8.x to 1.9.0 when merging this pull request, because it changes the minimum Jenkins version and it switches from Java 11 compilation to Java 17 compilation. Does that match with your thinking or would you prefer something different?

We need to merge and release this before the plugin bill of materials release at the end of this week.

MarkEWaite commented 1 month ago

Code looks good to me, but I do not have an idea what is that jenkins.baseline property

It is used in the Jenkins plugin archetype and in many plugins to avoid duplicating the Jenkins version string in multiple locations. More information is available in:

MarkEWaite commented 1 month ago

Thanks for merging @krisstern ! Are you able to release this as a new version so that it can be updated in the plugin BOM or would you prefer that I create the release?

Should the version number of the new release be 1.9.0 rather than the default of 1.8.3 because the Jenkins minimum version is increased?

krisstern commented 1 month ago

Hi @MarkEWaite I am busy with something else now so if you are able to could you please create a new release? Thanks!

MarkEWaite commented 1 month ago

Release 1.9.0 is building now.

MarkEWaite commented 1 month ago

Release 1.9.0 is published.