Details

    • Similar Issues:

      Description

      When a flow involves many steps, long logs, and/or many branches, it can be hard for a developer receiving a failure email (for example) to quickly see what part of the build actually failed and why. I think it would be useful for the catchError step to do a DFS search on the Throwable and its cause chain through the FlowNode graph starting at the end of the catch step, looking for ErrorAction, and setting/appending an environment variable with the URL of the LogAction. Or provide a new step to do the same. Thus you could write

      def runStuff(param) {
        ...
      }
      try {
        parallel a: {runStuff 'a'}, b: {runStuff 'b'}
      } catch (e) {
        mail to: '...', subject: 'Failure!', body: "Build failed: ${errorUrl(e)}"
      }
      

      and get a link to http://jenkins/job/myflow/123/flowGraph/77/console or the like, according to the actual step in one of the branches that threw the error.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-26107 [ JENKINS-26107 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-32059 [ JENKINS-32059 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-25894 [ JENKINS-25894 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-basic-steps PR 2 (Web Link)" [ 14200 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35400 [ 171193 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 162832 ] JNJira + In-Review [ 185594 ]
            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-basic-steps-plugin [ 21712 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-38156 [ JENKINS-38156 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal UX-616 (Web Link)" [ 18195 ]
            jglick Jesse Glick made changes -
            Labels stalled-pr
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-43995 [ JENKINS-43995 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                jglick Jesse Glick
              • Votes:
                42 Vote for this issue
                Watchers:
                57 Start watching this issue

                Dates

                • Created:
                  Updated: