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

Many script approvals pending after upgrading Jenkins

    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

            pnobili Philippe Nobili created issue -
            pnobili Philippe Nobili made changes -
            Field Original Value New Value
            Summary After Many script approvals pending after upgrading Jenkins
            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
            pnobili Philippe Nobili made changes -
            Attachment jenkins_plugins.txt [ 35064 ]
            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...
            pnobili Philippe Nobili made changes -
            Priority Blocker [ 1 ] Major [ 3 ]
            pnobili Philippe Nobili made changes -
            Link This issue is blocked by JENKINS-40334 [ JENKINS-40334 ]
            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.
            pnobili Philippe Nobili made changes -
            Link This issue is related to JENKINS-40334 [ JENKINS-40334 ]
            pnobili Philippe Nobili made changes -
            Link This issue is blocked by JENKINS-40334 [ JENKINS-40334 ]
            oleg_nenashev Oleg Nenashev made changes -
            Component/s script-security-plugin [ 18520 ]
            Component/s _unsorted [ 19622 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ]
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Fixed the component accordingly

            Show
            oleg_nenashev Oleg Nenashev added a comment - Fixed the component accordingly
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-31201 [ JENKINS-31201 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: