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

BOM example #73

Open
luis-garza opened this issue Mar 3, 2019 · 6 comments
Open

BOM example #73

luis-garza opened this issue Mar 3, 2019 · 6 comments

Comments

@luis-garza
Copy link

I'm trying to build a custom war for pipeline development purposes with the same plugins found in production instance. It's working, but it's quite hard to prepare the plugins section with all dependencies tree, endless try & error work.

So I've tried to specify the plugins through a BOM file without success.
Please, could you provide a full CWP demo using BOM file?

@oleg-nenashev
Copy link
Member

@luis-garza Hi. Have you seen jenkinsci/artifact-manager-s3-plugin#20 ?
BOM is not widely used in Custom WAR packager, and it would benefit from some improvements like automatic groupId resolution

@luis-garza
Copy link
Author

Yep, I followed that example from the beginning.
Looks like I've found a bug in v1.5, the BOM file specified in the main config YML is not loaded, but it works if I force it with the parameter --bomPath.

In any case, I get the same result as specifying the plugins list in the main config YML.
I thought using BOM will resolve recursively all the dependencies, but it doesn't. :(

Would be great for next versions specify just the top parent plugins needed, and resolve recursively all the plugin dependencies. Something like does plugins.txt and the /usr/local/bin/install-plugins.sh script in Docker images.

BTW, thanks for your quick answer and this great tool!

@oleg-nenashev
Copy link
Member

@luis-garza w.r.t the plugin management, there is ongoing GSoC project which should streamline management of plugins across Jenkins tools: https://jenkins.io/projects/gsoc/2019/plugin-installation-manager-tool-cli/ . I want to adopt it in CWP once the first alpha version is released. CC @stopalopa

@luis-garza
Copy link
Author

@oleg-nenashev
Great! This will easy and speed up custom instance and pipeline runner builds!

@luis-garza
Copy link
Author

Hi, is there any progress with the plugin installation manager tool?
It's already implemented it on CWP?

@oleg-nenashev
Copy link
Member

@luis-garza not yet. I had a local branch introducing the tool, but it did not quite work at that point. I have submitted a few patches there, and I plan to try again with the recent Plugin Installation Manager 2.0 release.

Regarding the Maven flow usability, a while ago I created a Jenkinsfile Runner packaging Parent POM: https://github.com/jenkinsci/jenkinsfile-runner/tree/master/packaging-parent-pom . It simplifies packaging of Jenkinsfile Runner, with proper plugin dependency checks and resolution. It might be possible to create a similar packaging POM for classic Jenkins bundles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants