-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat(java): Require Jenkins core 2.479.3 and Java 17 #363
base: master
Are you sure you want to change the base?
feat(java): Require Jenkins core 2.479.3 and Java 17 #363
Conversation
Hi @gounthar it looks like you may want to merge the latest changes from master into this branch before we can review it as some CI/CD checks are currently failing. |
df77df3
to
a1fc1da
Compare
Thanks, Kris. After an update and a few fixes, this PR's code compiled on my machine; and I managed to build the HPI. The reason the checks aren't succeeding here is most likely because the infrastructure is still building this code with JDK 8, using the Jenkinsfile content from the default branch. Could you please replay the Jenkins check by replaying the build with the supplied Jenkinsfile content? Thanks. |
Yes, it looks like this file needs to be updated as well:
|
Maybe even more files in https://github.com/jenkinsci/tekton-client-plugin/tree/9ea20d07a8107d173fc06ebed3be11d9c4ccc186/.github/workflows need to be updated |
@krisstern : only 2 checks are failing now, due to the use of JDK8 in the infra. |
I tried replaying the two failing tests but to no avail. It seems like the Linux Java JDK version is stuck at 8. Maybe I could try "merging without waiting for requirements to be met (bypass rules)", but that feels a bit risky. |
@gounthar could you please try this before we give up?: Could you please squash your commits into one? I see you do not have the changes in the Jenkinsfile in your first commit. But this may or may not work. Do give it a try first. |
Yep, let's wait until someone knows how to deal with that. |
I think the changes to the |
82387a8
to
98f66b2
Compare
Let me first run the tests locally, if all tests pass, I will merge the PR. |
I am seeing the following in the stack trace: [WARNING] No SupportedSourceVersion annotation found on io.sundr.builder.internal.processor.BuildableProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'io.sundr.builder.internal.processor.BuildableProcessor' less than -source '17'
[WARNING] No SupportedSourceVersion annotation found on io.sundr.builder.internal.processor.ExternalBuildableProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'io.sundr.builder.internal.processor.ExternalBuildableProcessor' less than -source '17'
[WARNING] No SupportedSourceVersion annotation found on io.sundr.resourcecify.internal.processor.ResourcecifyProcessor, returning RELEASE_6.
[WARNING] Supported source version 'RELEASE_6' from annotation processor 'io.sundr.resourcecify.internal.processor.ResourcecifyProcessor' less than -source '17' Are these safe to ignore @gounthar? |
I have no idea. :'( |
bae34e8
to
43cfa61
Compare
Hello
tekton-client
developers! 👋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.479 and Java 17
io.jenkins.tools.pluginmodernizer.UpgradeNextMajorParentVersion
Why Upgrade to Java 17 and Jenkins 2.479.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.479.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
developers
Tag frompom.xml
Jenkins no longer requires the
developers
tag inpom.xml
, as thedevelopers
section 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
developers
Tag:pom.xml
, resulting in a cleaner and more maintainable file.Removing the
developers
tag 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!