Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65225

Need way to easily revert plugins after reverting jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

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

          • Restoring from the backup
          • Using infrastructure as code, preferably a containerized instance. It allows to recreate the instance if needed. Note that you may still need a data backup if a plugin upgrades the configuration structure
          Show
          oleg_nenashev Oleg Nenashev added a comment - There are two reliable ways to downgrade Jenkins and/or its plugins: Restoring from the backup Using infrastructure as code, preferably a containerized instance. It allows to recreate the instance if needed. Note that you may still need a data backup if a plugin upgrades the configuration structure
          Hide
          rocha_stratovan John Rocha added a comment -

          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.

          Show
          rocha_stratovan John Rocha added a comment - 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.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          > 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

           

          Show
          oleg_nenashev Oleg Nenashev added a comment - > 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  

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rocha_stratovan John Rocha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: