If you are like me,
Here are my notes on how to move ahead.
Background:
Easily overlooked, the bump of plugin from 4.51 to 4.52 has a breaking change. The plugin build toolchain now requires at least Java 11 and at least Jenkins 2.361.
Solution:
Checklist:
In the plugin’s pom.xml,
<parent>
section) to 4.52<jenkins.version>
property) to 2.361.4<artifactId>bom-2.361.x</artifactId>
and <version>1723.vcb_9fee52c9fc</version>
)Make sure that Jenkinsfile specifies builds with the supported JDKs. (Relying on unknown defaults can bite you.) Your Jenkinsfile should look like this:
buildPlugin(
useContainerAgent: true,
configurations: [
[platform: 'linux', jdk: 17],
[platform: 'windows', jdk: 11],
]
)
Note:
If you don’t find the above mentioned elements in the pom.xml of the plugin you maintain, it is probably up for some tidying and “modernization”. See the Improve a Plugin Tutorial for hints.
If you have doubts or this checklist doesn’t work for you, don’t hesitate to discuss the matter on the developer mailing list.
/- Jmm
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CABLvyXxOFqBAA1FGJSPQqE-LQmwViTvdtVK%3DZtpw9JqwpqCPvA%40mail.gmail.com.
Easily overlooked, the bump of plugin from 4.51 to 4.52 has a breaking change. The plugin build toolchain now requires at least Java 11 and at least Jenkins 2.361.
I would suggest to always update the major version of our plugin-pom if we make breaking changes. This is the second time that we deliver incompatible changes with the same major version.
increment the MAJOR version when you make incompatible API changes
On Wed, Dec 14, 2022 at 4:10 PM Ullrich Hafner wrote:increment the MAJOR version when you make incompatible API changesIt is a nice theory, but in practice nearly any change could be incompatible when the “API” is defined with less than mathematical precision. 4.52 obviously was incompatible for many repositories, but 4.49 also had an incompatible change affecting some repositories, and 4.50 had three. Best to just treat the version as opaque, and if your Dependabot CI build breaks (or even if it does not), read the release notes.