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

Code that raises groovy.lang.MissingMethodException will prevent parallel from finishing

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • Jenkins 2.0, pipeline 2.0, rhel 6.5(hosted on), safari

      I have provided example code that seems to freeze a parallel pipeline job. I am unable to kill it unless I restart Jenkins first.

      Attached is example code. It raises a MissingMethodException (through a bad calling of timeout). I would expect the parallel step to end.

          [JENKINS-34414] Code that raises groovy.lang.MissingMethodException will prevent parallel from finishing

          Nick Sonneveld created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170525 ] New: JNJira + In-Review [ 183940 ]
          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 ]
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ]

          Sam Van Oort added a comment -

          Probably the exception triggers a CPS VM-level error that forces the Flow to end – not sure how viable that is?

          Sam Van Oort added a comment - Probably the exception triggers a CPS VM-level error that forces the Flow to end – not sure how viable that is?

          svanoort I noticed that today when running an old script and apparently the parallel step needs to be run inside a node block. This was not required in early version of pipeline and I am not sure in which version of the pipeline stack this has changed.

          Allan BURDAJEWICZ added a comment - svanoort I noticed that today when running an old script and apparently the parallel step needs to be run inside a node block. This was not required in early version of pipeline and I am not sure in which version of the pipeline stack this has changed.

            Unassigned Unassigned
            sonneveldsmartward Nick Sonneveld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: