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

successful parallel stages marked as failed

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This somewhat relates to JENKINS-33840
      but the problem is that the stages that run in parallel, and/or finish after a failure get marked as "failed"

      example pipeline:

      stage 'parallel'
      def error;
      node {
        try {
          parallel(
            b: { stage 'b'; error 'died' },
            c: { stage 'c'; echo 'c' },
            // this branch takes longer than b and c
            a: { stage 'a'; sleep 25; echo'a' },
            failFast: false
          )
        } finally {
          stage 'Cleanup'
          echo "done with all"
        }
      }
      

      Expected behavior is that stage 'b' is marked as failure, the build is marked as failure, and all other stages are executed successfully. But as you can see in the screenshot, 'a' and 'Cleanup' are marked as 'failed'

      NOTE:

      • changing {{b: { stage 'b'; error 'died' }}} to {{b: { stage 'b'; echo 'died' }}}, everything is green
      • removing the try/finally, 'Cleanup' is not executed, and 'a' is still marked as 'failed'

        Attachments

          Activity

          jknurek J Knurek created issue -
          jknurek J Knurek made changes -
          Field Original Value New Value
          Epic Link JENKINS-31152 [ 165808 ]
          svanoort Sam Van Oort made changes -
          Assignee Antonio Muñiz [ amuniz ] Sam Van Oort [ svanoort ]
          svanoort Sam Van Oort made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]
          svanoort Sam Van Oort made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 170638 ] JNJira + In-Review [ 209979 ]

            People

            Assignee:
            svanoort Sam Van Oort
            Reporter:
            jknurek J Knurek
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: