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

Many script approvals pending after upgrading Jenkins

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • script-security-plugin
    • None
    • Linux debian7

      After upgrading Jenkins to the latest version and restarting, there are now 1500+ script approval pending.

      Many projects were actually generated from DSL, so the actual number of scripts that we had to approve with the former Jenkins is much less..

      We cannot approve all scripts from the script approval item in "Manage Jenkins" since the page crashes due to too many pending approvals and because the too big number of projects...

      We are stuck at this point, many of our projects ceased to function.
      Many thanks for any hints/fix to help this out.

          [JENKINS-40118] Many script approvals pending after upgrading Jenkins

          Hi Oleg / someone else ?

          Is there at least a way to workaround this issue and approve all pending approvals (e.g. via CLI or so) ? That would unblock the situation at least.

          Thanks!

          Philippe Nobili added a comment - Hi Oleg / someone else ? Is there at least a way to workaround this issue and approve all pending approvals (e.g. via CLI or so) ? That would unblock the situation at least. Thanks!

          Oleg Nenashev added a comment -

          Please provide the version of Jenkins and the list of installed plugins with their versions

          Oleg Nenashev added a comment - Please provide the version of Jenkins and the list of installed plugins with their versions

          Thanks Oleg for coming back to us .

          Jenkins version is: 2.19.4. I attached the list of plugins we use, I hope it's readable... You might need to do dos2unix if you are on Linux...

          Many thanks again! jenkins_plugins.txt
          Phil.

          Philippe Nobili added a comment - Thanks Oleg for coming back to us . Jenkins version is: 2.19.4 . I attached the list of plugins we use, I hope it's readable... You might need to do dos2unix if you are on Linux... Many thanks again! jenkins_plugins.txt Phil.

          Dirty workaround to the issue we have found:

          • On the scriptApproval page, open a Console (developers tools)
          • In the console run:
            * jQuery("button.approve").trigger("click")
            

          A real fix would be useful though...

          Philippe Nobili added a comment - Dirty workaround to the issue we have found: On the scriptApproval page, open a Console (developers tools) In the console run: * jQuery( "button.approve" ).trigger( "click" ) A real fix would be useful though...

          Issue not related to Jenkins upgrade (as thought) but to the the Script security plugin.

          Philippe Nobili added a comment - Issue not related to Jenkins upgrade (as thought) but to the the Script security plugin.

          Oleg Nenashev added a comment -

          Fixed the component accordingly

          Oleg Nenashev added a comment - Fixed the component accordingly

            Unassigned Unassigned
            pnobili Philippe Nobili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: