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

Can't distinguish between durable task abort and failure in workflow plugin

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      workflow-durable-task-step 2.24

      Description

      When a workflow is manually aborted in Jenkins it fires a hudson.AbortException. This is the same thing that happens when a step fails. Thus, it's impossible to properly set the build status to ABORTED on a manual abort and to FAILED on a failed step because you can't programmatically tell the difference.

      Jesse Glick’s recommended fix: see comment as of 2017-06-28

        Attachments

          Issue Links

            Activity

            jmif Joe Mifsud created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Resolution Cannot Reproduce [ 5 ]
            Status Open [ 1 ] Resolved [ 5 ]
            jmif Joe Mifsud made changes -
            Resolution Cannot Reproduce [ 5 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Summary Can't distinguish between manual abort and failure in workflow plugin Can't distinguish between durable task abort and failure in workflow plugin
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163682 ] JNJira + In-Review [ 186290 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-durable-task-step-plugin [ 21715 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-37724 [ JENKINS-37724 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34376 [ JENKINS-34376 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35396 [ 171189 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-41944 [ JENKINS-41944 ]
            jglick Jesse Glick made changes -
            Description When a workflow is manually aborted in Jenkins it fires a hudson.AbortException. This is the same thing that happens when a step fails. Thus, it's impossible to properly set the build status to ABORTED on a manual abort and to FAILED on a failed step because you can't programmatically tell the difference. When a workflow is manually aborted in Jenkins it fires a hudson.AbortException. This is the same thing that happens when a step fails. Thus, it's impossible to properly set the build status to ABORTED on a manual abort and to FAILED on a failed step because you can't programmatically tell the difference.

            [~jglick]’s recommended fix: see comment as of 2017-06-28
            dnusbaum Devin Nusbaum made changes -
            Assignee Jesse Glick [ jglick ] Devin Nusbaum [ dnusbaum ]
            dnusbaum Devin Nusbaum made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            dnusbaum Devin Nusbaum made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            dnusbaum Devin Nusbaum made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            dnusbaum Devin Nusbaum made changes -
            Remote Link This issue links to "jenkinsci/workflow-durable-task-step-plugin#75 (Web Link)" [ 21823 ]
            dnusbaum Devin Nusbaum made changes -
            Released As workflow-durable-task-step 2.24
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-51928 [ JENKINS-51928 ]
            jequals5 Marky Jackson made changes -
            Epic Link JENKINS-35396 [ 171189 ]

              People

              Assignee:
              dnusbaum Devin Nusbaum
              Reporter:
              jmif Joe Mifsud
              Votes:
              20 Vote for this issue
              Watchers:
              44 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: