-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Require Jenkins 2.479 or newer #1671
Require Jenkins 2.479 or newer #1671
Conversation
Update to use Jakarta EE 9, StaplerRequest2, and StaplerResponse2
@@ -115,6 +115,75 @@ public String toString() { | |||
return s.toString(); | |||
} | |||
|
|||
/** | |||
* Copied from scm API plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not maintainable; better to depend on jenkinsci/scm-api-plugin#282 which migrates this method (compatibly!) to EE 9.
Standard is better
Worth a BOM/PCT run I think to ensure that no other plugins are consuming the changed methods. From a visual inspection they looked like one-off forms that are unlikely to be reused, but one never knows. |
* jenkinsci/git-client-plugin#1172 * jenkinsci/git-plugin#1671 * jenkinsci/scm-api-plugin#282 Changes method signatures of several methods in the git plugin from x(StaplerRequest) to x(StaplerRequest2), but hoped that there are no consumers of those API's outside the git plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
pom.xml
Outdated
@@ -114,6 +118,8 @@ | |||
<dependency> | |||
<groupId>org.jenkins-ci.plugins</groupId> | |||
<artifactId>scm-api</artifactId> | |||
<!-- TODO: Replace with release of https://github.com/jenkinsci/scm-api-plugin/pull/282 once it is available --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Added as 87fcaa7 . Friday's release of plugin BOM will allow that version line to be removed.
<jenkins.version>${jenkins.baseline}.3</jenkins.version> | ||
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ --> | ||
<jenkins.baseline>2.462</jenkins.baseline> | ||
<!-- TODO Replace with the standard jenkins.baseline references after LTS requires Java 17 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TODO can now be completed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed in:
Require Jenkins 2.479 or newer
Update to use Jakarta EE 9, StaplerRequest2, and StaplerResponse2
Testing done
Automated tests pass. Once the CI job has created an incremental build, I'll inclide it in my test environment for interactive checks.
Submitter checklist