feat(java): Require Jenkins core 2.492.3 and Java 17#15
feat(java): Require Jenkins core 2.492.3 and Java 17#15gounthar wants to merge 2 commits intojenkinsci:masterfrom
Conversation
|
|
||
| @POST | ||
| public HttpResponse doCreateDeleteFolderRequest(StaplerRequest request, StaplerResponse response) throws IOException, ServletException, MessagingException { | ||
| public HttpResponse doCreateDeleteFolderRequest(StaplerRequest2 request, StaplerResponse2 response) throws IOException, ServletException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @POST | ||
| public HttpResponse doCreateDeleteJobRequest(StaplerRequest staplerRequest, StaplerResponse response) throws IOException, ServletException, MessagingException { | ||
| public HttpResponse doCreateDeleteJobRequest(StaplerRequest2 staplerRequest, StaplerResponse2 response) throws IOException, ServletException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @POST | ||
| public HttpResponse doCreateDeleteMultiBranchRequest(StaplerRequest staplerRequest, StaplerResponse response) throws IOException, MessagingException { | ||
| public HttpResponse doCreateDeleteMultiBranchRequest(StaplerRequest2 staplerRequest, StaplerResponse2 response) throws IOException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @POST | ||
| public HttpResponse doCreateRenameFolderRequest(StaplerRequest request, StaplerResponse response) throws IOException, ServletException, MessagingException { | ||
| public HttpResponse doCreateRenameFolderRequest(StaplerRequest2 request, StaplerResponse2 response) throws IOException, ServletException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @POST | ||
| public HttpResponse doCreateRenameJobRequest(StaplerRequest request, StaplerResponse response) throws IOException, ServletException, MessagingException { | ||
| public HttpResponse doCreateRenameJobRequest(StaplerRequest2 request, StaplerResponse2 response) throws IOException, ServletException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @POST | ||
| public HttpResponse doCreateRenameMultiBranchRequest(StaplerRequest request, StaplerResponse response) throws IOException, ServletException, MessagingException { | ||
| public HttpResponse doCreateRenameMultiBranchRequest(StaplerRequest2 request, StaplerResponse2 response) throws IOException, ServletException, MessagingException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
Hello
requestsdevelopers! 👋This is an automated pull request created by the Jenkins Plugin Modernizer tool. The tool has applied the following recipes to modernize the plugin:
Upgrade to the next major parent version (5.X) requiring Jenkins 2.492 and Java 17
io.jenkins.tools.pluginmodernizer.UpgradeNextMajorParentVersion
Why Upgrade to Java 17 and Jenkins 2.492.x?
Embrace Java 17 LTS Stability: Benefit from long-term support with modern language features that improve development practice and plugin performance.
Harness Jenkins 2.492.x Innovations: Stay aligned with the latest features and stability improvements, ensuring smooth integration and future-proofing.
Enhance Security: Protect your plugin with up-to-date security fixes from both Java 17 and Jenkins core improvements.
Align with the Community: Keep pace with ecosystem shifts towards Java 17, ensuring compatibility and expanding your plugin's user base.
Enjoy a Better Developer Experience: Make the most of advanced tooling support and simplified dependency management with Java 17's enhancements.
Removing
developersTag frompom.xmlJenkins no longer requires the
developerstag inpom.xml, as thedeveloperssection was traditionally used to list individuals responsible for the plugin.Instead, Jenkins now uses the Repository Permission Updater (RPU) to manage permissions and developer information.
Benefits of Removing
developersTag:pom.xml, resulting in a cleaner and more maintainable file.Removing the
developerstag aligns with modern Jenkins infrastructure standards and prevents outdated or redundant developer information from being included in plugin metadata.JEP-227: Replace Acegi Security with Spring Security
Migrating Jenkins plugin code from Acegi Security to Spring Security is important for several reasons:
By migrating to Spring Security, plugin developers ensure their code remains compatible with current Jenkins versions, benefit from modern security features, and contribute to a more secure and maintainable Jenkins ecosystem.
Summary
By upgrading, you'll be positioning your plugin at the forefront of performance, security, and user satisfaction. We encourage you to explore these updates and provide feedback. Let's continue to build a robust Jenkins ecosystem together!