-
Notifications
You must be signed in to change notification settings - Fork 197
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
Version 2.0.1 incorrectly resolves required versions in dependencies #193
Comments
We're running into this issue as well, we've pinned the versions of all plugins including their (transitive) dependencies in [edit] We've switched back to the |
Yeah it’s a bit of a pain, possibly the error should be relaxed if there’s a compatible version declared elsewhere in the file. We’ve been working around it by using the available-updates flag to update our file for us when that happens |
Unfortunately the |
I’ll try look at issues in this repo soon, patches very welcome though |
To answer your questions, yes it should only pull the latest available for the Jenkins Core I am running. Turning |
It already does that, but Jenkinsfile runner is probably messing with it see explanation here: #219 (comment) |
I think I saw a log message saying the plugin-manager could not determine the version of Jenkins from the war file. I'm not sure how it checks that. |
That’s the cause of it for you then |
Jenkinsfile Runner is not really "messing" with it. Taking the packaging, there is just no Jenkins WAR which could be really used to retrieve the version as documented here: https://github.com/jenkinsci/plugin-installation-manager-tool/blob/master/plugin-management-library/src/main/java/io/jenkins/tools/pluginmanager/impl/PluginManager.java#L1064-L1072 . An alternative solution is needed, and it is going to be a problem with recent plugin releases requiring new core versions. I will create a patch |
Looks like there is a regression after switching to "download latest by default" in 2.0.0
At the same time, even the most recent release of Docker Pipeline plugin requires 2.35:
The text was updated successfully, but these errors were encountered: