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

Require Jenkins 2.479 or newer #1671

Merged

Conversation

MarkEWaite
Copy link
Contributor

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

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

Update to use Jakarta EE 9, StaplerRequest2, and StaplerResponse2
@MarkEWaite MarkEWaite requested a review from a team as a code owner October 9, 2024 01:28
@MarkEWaite MarkEWaite added the chore Reduces maintenance effort by changes not directly visible to users label Oct 9, 2024
@github-actions github-actions bot added dependencies Dependency related change tests Automated test addition or improvement labels Oct 9, 2024
@@ -115,6 +115,75 @@ public String toString() {
return s.toString();
}

/**
* Copied from scm API plugin.
Copy link
Member

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.

@MarkEWaite MarkEWaite removed dependencies Dependency related change tests Automated test addition or improvement labels Oct 9, 2024
@basil
Copy link
Member

basil commented Oct 9, 2024

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.

MarkEWaite added a commit to MarkEWaite/bom that referenced this pull request Oct 9, 2024
* 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.
pom.xml Outdated Show resolved Hide resolved
@github-actions github-actions bot added dependencies Dependency related change tests Automated test addition or improvement labels Oct 9, 2024
Copy link
Member

@basil basil left a 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 -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

@MarkEWaite MarkEWaite Oct 10, 2024

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.

@MarkEWaite MarkEWaite added rfe Improvement or new feature and removed dependencies Dependency related change chore Reduces maintenance effort by changes not directly visible to users tests Automated test addition or improvement labels Oct 10, 2024
@MarkEWaite MarkEWaite merged commit 436ae20 into jenkinsci:master Oct 10, 2024
18 checks passed
@MarkEWaite MarkEWaite deleted the require-jenkins-2.479-or-newer branch October 10, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfe Improvement or new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants