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

Inconsistant Jenkins target version #130

Open
ikedam opened this issue Jul 3, 2022 · 0 comments
Open

Inconsistant Jenkins target version #130

ikedam opened this issue Jul 3, 2022 · 0 comments

Comments

@ikedam
Copy link
Contributor

ikedam commented Jul 3, 2022

aws-codebuild-jenkins-plugin targets Jenkins 2.60.3, but its dependency targets Jenkins > 2.60.3.

Example: #128
You bumped script-security 1.56 to 1.75, but script-security-1.75 targets Jenkins-2.176.4: https://github.com/jenkinsci/script-security-plugin/blob/script-security-1.75/pom.xml @leoherran-aws

This results mvn hpi:run failed with:

Jul 03, 2022 4:03:06 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin Script Security Plugin v1.75 (script-security)
java.io.IOException: Script Security Plugin v1.75 failed to load.
 - You must update Jenkins from v2.60.3 to v2.176.4 or later to run this plugin.
        at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:626)
        at hudson.PluginManager$2$1$1.run(PluginManager.java:516)
        at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
        at jenkins.model.Jenkins$7.runTask(Jenkins.java:1090)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Same to other dependencies. Attached full error log: aws-codebuild-startup-failure.txt

You should upgrade also target Jenkins version.
It makes sense to introduce Jenkins plugin BOM: https://www.jenkins.io/doc/developer/plugin-development/dependency-management/#jenkins-plugin-bom

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

1 participant