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

Preparing Jenkins For Shutdown Hangs Running Pipelines

    Details

    • Similar Issues:
    • Released As:
      workflow-cps 2.78

      Description

      Start a couple long-running pipelines with

      node

      { sleep 100 }

      Queue up a few more jobs. Go to "manage jenkins" and "prepare for shutdown."

      Now pipeline jobs that would finish and unenqueue never finish and have to manually be killed (which does work). Freestyle jobs complete normally. Queued jobs aren't run, so that part of prepare-for-shutdown works.

      Even stranger: upon killing and restarting with Ctrl+C, we get this lovely conundrum:

      Those pipeline builds won't show up in the build queue on the main screen.

      Checks to do:

      • Regression in core?
      • Regression in pipeline?
      • does /safeRestart or /restart trigger it?

        Attachments

          Issue Links

            Activity

            svanoort Sam Van Oort created issue -
            svanoort Sam Van Oort made changes -
            Field Original Value New Value
            Description Start a couple long-running pipelines with

            node {
               sleep 100
            }

            Queue up a few more jobs. Go to "manage jenkins" and "prepare for shutdown."

            Now pipeline jobs that would finish and unenqueue *never* finish and have to manually be killed (which does work). Freestyle jobs complete normally. Queued jobs aren't run, so that part of prepare-for-shutdown works.

            Even stranger: upon killing and restarting with Ctrl+C, we get this lovely conundrum:
            !Screen Shot 2016-04-14 at 3.45.11 PM.png|thumbnail!

            Those pipeline builds won't show up in the build queue on the main screen.

            Start a couple long-running pipelines with

            node {
               sleep 100
            }

            Queue up a few more jobs. Go to "manage jenkins" and "prepare for shutdown."

            Now pipeline jobs that would finish and unenqueue *never* finish and have to manually be killed (which does work). Freestyle jobs complete normally. Queued jobs aren't run, so that part of prepare-for-shutdown works.

            Even stranger: upon killing and restarting with Ctrl+C, we get this lovely conundrum:
            !Screen Shot 2016-04-14 at 3.45.11 PM.png|thumbnail!

            Those pipeline builds won't show up in the build queue on the main screen.

            Checks to do:
            - Regression in core?
            - Regression in pipeline?
            - does /safeRestart or /restart trigger it?
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Assignee Jesse Glick [ jglick ]
            Resolution Cannot Reproduce [ 5 ]
            ruoso Daniel Ruoso made changes -
            Resolution Cannot Reproduce [ 5 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            ruoso Daniel Ruoso made changes -
            Summary Preparing Jenkins 2 For Shutdown Hangs Running Pipelines Preparing Jenkins For Shutdown Hangs Running Pipelines
            ruoso Daniel Ruoso made changes -
            Labels 2.0 2.0-rc testfest 2.0 2.0-rc lts testfest
            ruoso Daniel Ruoso made changes -
            Environment Jenkins 2.0-rc-1
            Running from WAR on Mac
            Jenkins 2.0-rc-1
            Running from WAR on Mac
            Jenkins 1.651.1 running from WAR on Linux
            ruoso Daniel Ruoso made changes -
            Labels 2.0 2.0-rc lts testfest 1.651.1 2.0 2.0-rc lts testfest
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ]
            svanoort Sam Van Oort made changes -
            Link This issue duplicates JENKINS-34281 [ JENKINS-34281 ]
            svanoort Sam Van Oort made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170319 ] JNJira + In-Review [ 198838 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            dantran dan tran made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            svanoort Sam Van Oort made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s core [ 15593 ]
            Component/s pipeline [ 21692 ]
            svanoort Sam Van Oort made changes -
            Link This issue is duplicated by JENKINS-38316 [ JENKINS-38316 ]
            svanoort Sam Van Oort made changes -
            Link This issue is related to JENKINS-38316 [ JENKINS-38316 ]
            reinholdfuereder Reinhold Füreder made changes -
            Link This issue is related to JENKINS-51215 [ JENKINS-51215 ]
            svanoort Sam Van Oort made changes -
            Assignee Sam Van Oort [ svanoort ] Jose Blas Camacho Taboada [ jtaboada ]
            jtaboada Jose Blas Camacho Taboada made changes -
            Assignee Jose Blas Camacho Taboada [ jtaboada ]
            vivek Vivek Pandey made changes -
            Labels 1.651.1 2.0 2.0-rc lts testfest 1.651.1 2.0 2.0-rc lts testfest triaged-2018-11
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "jenkinsci/workflow-cps-plugin#340 (Web Link)" [ 24032 ]
            dnusbaum Devin Nusbaum made changes -
            Assignee Devin Nusbaum [ dnusbaum ]
            dnusbaum Devin Nusbaum made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            dnusbaum Devin Nusbaum made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Released As workflow-cps 2.78
            reinholdfuereder Reinhold Füreder made changes -
            Link This issue is related to JENKINS-60434 [ JENKINS-60434 ]

              People

              • Assignee:
                dnusbaum Devin Nusbaum
                Reporter:
                svanoort Sam Van Oort
              • Votes:
                44 Vote for this issue
                Watchers:
                69 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: