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

Many script approvals pending after upgrading Jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            pnobili 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!

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

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

            Show
            oleg_nenashev Oleg Nenashev added a comment - Please provide the version of Jenkins and the list of installed plugins with their versions
            Hide
            pnobili 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.

            Show
            pnobili 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.
            Hide
            pnobili 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...

            Show
            pnobili 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...
            Hide
            pnobili Philippe Nobili added a comment -

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

            Show
            pnobili Philippe Nobili added a comment - Issue not related to Jenkins upgrade (as thought) but to the the Script security plugin.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Fixed the component accordingly

            Show
            oleg_nenashev Oleg Nenashev added a comment - Fixed the component accordingly

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: