On Mon, Jan 11, 2021 at 8:24 PM 'Cyrille Le Clerc' via Jenkins Developers < [email protected]> wrote:
> > - I am not clear on if I should track the `StepEndNode` containing a > `LabelAction` or an `ArgumentsAction` > > Depends on whether you are interested in the close of the body (which a block-scoped step may run zero, one, or more times), or of the step itself. > - On none of the StepEndNode give me access to the error thrown during > the execution to indicate a failure, `StepEndNode#getError()` and > `StepEndNode.getExecution.getCauseOfFailure()` return null > during `GraphListener#onNewHead(FlowNode)` > > `onNewHead` is going to be called as soon as the new node is created, before some of its metadata is actually initialized. Probably there should be a better API here, but you can just use `GraphListener` in such a way that when a new head is added, you process metadata from its *parent* node(s), which by that time should be finalized. I have a similar request for `git` steps that don't even have a > `StepEndNode`, how can I intercept the end of execution and the > result/error of the execution of a `git` step. > Same. When the *next* node appears, the atom node for the step should have any `ErrorAction` attached. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr1X6WP4UUndWTpaoSqLhbAZWjoHD0jObypXNHzu1SRfOA%40mail.gmail.com.
