Hi,
I am using a Pipeline job to trigger several freestyle jobs during its execution, using the native 'build' step. Later, after all the runs are finalized, I'd like to read info about those runs (name, number, duration, timestamp...) to collect metrics/stats regarding the overall runs. I'm using the Groovy Event Listener plugin for that task. Now, I was thinking to read the WorkflowRun object's actions (looking for BuildTriggerAction instances) to get the downstream builds, but they are not available. run.getActions(BuildTriggerAction.class) returns an empty list. I've seen indeed that action is removed every time the triggered build is completed, as described in this ticket https://issues.jenkins-ci.org/browse/JENKINS-28673 <https://issues.jenkins-ci.org/browse/JENKINS-28673> My questions are: - do you know how to retrieve the handle to the triggered builds in another way? Not at runtime (I don't have the RunWrapper object, but the WorkflowRun instead). Maybe using the flow objects? - is there another way to fix the issues seen in the ticket, instead of removing the BuildTriggerAction actions? Thanks in advance! -- 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/8ddf0727-75b0-4b39-a6ae-b99d406dc1ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
