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

Entering, then cancelling, quiet mode causes builds to hang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: workflow-cps-plugin
    • Labels:
      None
    • Environment:
      jenkins:latest docker image
    • Similar Issues:

      Description

      This problem can be reproduced with a simple pipeline job that does nothing but echo and sleep in a loop.

      1) Start a run of the pipeline job, the job produces output in the Console Output as I expect
      2) Put Jenkins in "Preparing for Shutdown" mode. The jobs stop producing output. That's somewhat surprising, as runs that were started before entering Shutdown Mode are usually allowed to complete.
      3) Cancel "Shutdown Mode." The job is still "stuck" and doesn't produce any output. The job also cannot be canceled except by a "hard kill," i.e. going through the "Forcibly terminate running steps" and "Forcibly kill entire build" links

      The behavior in #2 is surprising, but not really a problem for me. However, the fact that entering and leaving shutdown mode completely hoses running jobs is really bad. This is compounded by an init.groovy script we use that places Jenkins in shutdown mode at startup.

        Attachments

          Issue Links

            Activity

            srwalter Steven Walter created issue -
            dalvizu Dan Alvizu made changes -
            Field Original Value New Value
            Component/s pipeline [ 21692 ]
            Component/s build-pipeline-plugin [ 15962 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue blocks JENKINS-32015 [ JENKINS-32015 ]
            jglick Jesse Glick made changes -
            Summary Putting Jenkins in shutdown mode breaks running pipeline runs Entering, then cancelling, quiet mode causes builds to hang
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35399 [ 171192 ]
            mcrooney mcrooney made changes -
            Assignee mcrooney [ mcrooney ]
            mcrooney mcrooney made changes -
            Assignee mcrooney [ mcrooney ]
            reinholdfuereder Reinhold Füreder made changes -
            Link This issue is related to JENKINS-49365 [ JENKINS-49365 ]
            reinholdfuereder Reinhold Füreder made changes -
            svanoort Sam Van Oort made changes -
            Link This issue duplicates JENKINS-34256 [ JENKINS-34256 ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            svanoort Sam Van Oort made changes -
            Link This issue is related to JENKINS-34256 [ JENKINS-34256 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                srwalter Steven Walter
              • Votes:
                20 Vote for this issue
                Watchers:
                25 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: