Having a failing assert hangs the pipeline for me. Requires a hard kill in order to stop it.

      Test pipeline script:

      assert false

          [JENKINS-34488] Failing 'assert' hangs the pipeline

          Nick Sonneveld created issue -
          Jesse Glick made changes -
          Labels Original: pipeline workflow New: groovy workflow
          Jesse Glick made changes -
          Epic Link New: JENKINS-35390 [ 171183 ]
          Jesse Glick made changes -
          Labels Original: groovy workflow New: groovy

          Alex Francis added a comment - - edited

          Worth noting a workaround: just add a message to the assertion, e.g.

          assert false : 'oh no!'
          

          Alex Francis added a comment - - edited Worth noting a workaround: just add a message to the assertion, e.g. assert false : 'oh no!'
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170614 ] New: JNJira + In-Review [ 183975 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]
          Component/s Original: pipeline [ 21692 ]
          ikedam made changes -
          Attachment New: threaddump_halt_by_assert.txt [ 33984 ]

            ikedam ikedam
            sonneveldsmartward Nick Sonneveld
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: