timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-65225] Need way to easily revert plugins after reverting jenkins #1455

Open timja opened 3 years ago

timja commented 3 years ago

I upgraded from Jenkins 2.263.4 to 2.277.1 and I upgraded all installed plugins.

Jenkins pretty much stopped working after that. I could not edit my jobs, it wouldn't save, the screen output was garbled, it was a mess. Release notes for 2.277.1 indicate that it had a major UI change and plugins that weren't updated might not work.

So I fell back to 2.263.4. And then I was presented with a bunch of plugin dependency errors (as expected). However, there is no obvious way for how to downgrade those plugins.

 

If we go to the Plugin Manager -> Installed page it just says "Failed to load......" and there is no option to "Downgrade". Funny enough, all the plugins that successfully loaded had a downgrade option, it's the failed to load ones that did not.


Originally reported by rocha_stratovan, imported from: Need way to easily revert plugins after reverting jenkins
  • status: Open
  • priority: Minor
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 3 years ago

oleg_nenashev:

There are two reliable ways to downgrade Jenkins and/or its plugins:

timja commented 3 years ago

rocha_stratovan:

oleg_nenashev- those are good ideas, but the suggestions miss the point.

There is an issue with Jenkins. When it cannot load a plugin, it falls flat on it's face and simply says "unable to load plugin" and there is no way within Jenkins to revert to the previous plugin.

HOWEVER, if the plugin loads fine, there is a way to revert to the previous plugin using the "revert" button.

timja commented 3 years ago

oleg_nenashev:

> When it cannot load a plugin, it falls flat on it's face and simply says "unable to load plugin" and there is no way within Jenkins to revert to the previous plugin.

I confirm that, we do not have a disaster recovery UI for the plugin load failure scenario. It would be a good improvement, and please be sure I did not plan to close this RFE ticket.

Plugins can be modified manually by replacing HPIs in Jenkins Home. No, it is not a great UX either