custom-war-packager icon indicating copy to clipboard operation
custom-war-packager copied to clipboard

Add support for Jenkins Plugin BOM as a source of plugin versions when using YAML plugin list

Open oleg-nenashev opened this issue 4 years ago • 5 comments

Jenkins Plugin Bill of Materials provides a list of plugins which are cross-verified to some extent: https://github.com/jenkinsci/bom . When using pom.xml as a plugin list input, it is possible to use BOM via Maven features. But it is not possible for a YAML configuration. It would be awesome to support it so that users can delegate version management of some components they bundle

oleg-nenashev avatar Jul 23 '20 21:07 oleg-nenashev

CC @alxsap @LinuxSuRen @sladyn98 who might have some feedback about usefullness of such option

oleg-nenashev avatar Jul 23 '20 21:07 oleg-nenashev

I know CWP already supported using a pom.xml as the plugin list. But I didn't use it too much. So I believe that adding support for Jenkins BOM as a source of plugin versions is great. It's always kill me when handling the version conflicts.

LinuxSuRen avatar Jul 23 '20 22:07 LinuxSuRen

It's always kill me when handling the version conflicts.

This is exactly why I submitted it. Trying to update Jenkinsfile Runner demos and the build flow 😢

oleg-nenashev avatar Jul 23 '20 22:07 oleg-nenashev

We are using a simple list of plugins we need and a custom script generates the list of the latest plugins and their transitive dependencies. The script automatically updates the packager-config.yml.

Therefore currently we don't have this requirement. But there have been reasons, why we implemented this script - we had exactly those issues. 😉

alxsap avatar Jul 28 '20 10:07 alxsap

I consider doing a new Maven-based packaging flow which would allow to easily consume BOMs and manage dependencies. https://github.com/jenkinsci/jenkinsfile-runner/issues/344

oleg-nenashev avatar Jul 28 '20 11:07 oleg-nenashev