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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Duplicate
    • pipeline
    • None

    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

            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?

            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?

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

            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.
            recampbell Ryan Campbell added a comment - - edited

            This script reproduces the problem:

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: