-
Notifications
You must be signed in to change notification settings - Fork 194
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
Running "jenkins-plugin-manager.jar --list" deletes all installed plugins #173
Comments
Introduced and mentioned in review of #94 . |
Additional "feature": running the same command twice means downloading everything twice, since everything is deleted before it is considered as being already installed. |
@raspy most of what you said isn’t related to this issue. The code needs to be reworked to not go through the path that deletes the plugins. Updating the plugins file code is an example of where this should probably be invoked from. The deleting bit can be reworked too but there’s no need for this code to go through that code path |
We just stumbled over this shocking bug as well: kind of "maximum surprise" principle ;-) |
I've had an initial look at this, the flag doesn't do what I expect at all. It seems to be more about listing installation of plugins rather than a typical list command (which already get logged out anyway). If no objections I would just completely re-work this to be a standalone flag that only lists installed plugins. It would be a breaking change but I doubt people are actually using this |
@timja Yes, please! |
Working on a fix restoring the option |
@oleg-nenashev is there a PR or branch to track? Mainly I wanted to comment and ask if the new fix will involve an output to be able to diff the versions. Basically I want to use this tool mainly to tell me currently "latest" versions compared to versions in plugins.txt. The use case is to automate a build pipeline to rebuild Jenkins when a new plugin is released, run a series of tests, and if it fails, revert the plugin change and open a new bug (not here!) to investigate the break. (Without "-l" option the tool does not show what the current latest version is if you have unpinned plugins; I know I could script this myself, but would rather use a supported tool if possible) |
2.4.0+ includes a fix |
@pwillis-els you can always see the release notes: https://github.com/jenkinsci/plugin-installation-manager-tool/releases |
Running
/usr/lib/jenkins-plugin-manager.jar --list
deletes all installed plugins.Example:
The text was updated successfully, but these errors were encountered: