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

Aborting a build inside a node step messes up the flow graph

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline
    • None

      Run the following script and abort the build while the sh step is in progress.

      node {
        echo 'step 1'
        node {
          echo 'step 2'
          sh 'for i in $(seq 1 100); do echo $i; sleep 1; done'
          echo 'step 3'
        }
        echo 'step 4'
      }
      

      Then check the resulting flow graph from build/N/execution/graphViz. It gets the nesting structure all wrong.

            kohsuke Kohsuke Kawaguchi
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: