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

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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None

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

          [JENKINS-26179] workflow job abort does not work if error in the syntax of the script

          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?

          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?

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

          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.

          Ryan Campbell added a comment - - edited

          This script reproduces the problem:

          node "master" {
            ws {
             sh "touch foo"
             sh 'ls'
             ws {
               sh 'ls'
             }
          }
          

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

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

              Created:
              Updated:
              Resolved: