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

workflow job abort does not work if error in the syntax of the script

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      When having an error in the groovy script and launching the job, the job would hang forever, even if a manual abortion is issued.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Similar to JENKINS-26115, though that involved load of a library, which is not mentioned here.

            Is there a particular syntax error which reproduces this?

            Show
            jglick Jesse Glick added a comment - Similar to JENKINS-26115 , though that involved load of a library, which is not mentioned here. Is there a particular syntax error which reproduces this?
            Hide
            varmenise valentina armenise added a comment -

            any syntax error indeed (at least in my case), adding a comma in the script should make you able to reproduce it.

            Show
            varmenise valentina armenise added a comment - any syntax error indeed (at least in my case), adding a comma in the script should make you able to reproduce it.
            Hide
            recampbell Ryan Campbell added a comment - - edited

            This script reproduces the problem:

            node "master" {
              ws {
               sh "touch foo"
               sh 'ls'
               ws {
                 sh 'ls'
               }
            }
            
            Show
            recampbell Ryan Campbell added a comment - - edited This script reproduces the problem: node "master" { ws { sh "touch foo" sh 'ls' ws { sh 'ls' } }

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                varmenise valentina armenise
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: