Counting the number of agents in a running pipeline

38 views
Skip to first unread message

Damien Coraboeuf

unread,
Sep 14, 2022, 10:51:40 AM9/14/22
to Jenkins Users
Hi,

We have heavy duty pipelines running on multiple agents (40-50) in parallel and this number of agents is dynamic.

At the end of the pipeline, in a post/always section for example, I'd like to get the list of agents (or their number at least) having been used by this pipeline so that I can send it to some monitoring application.

I've started to play around with FlowNodeUtil, FlowNode, etc., but this looks awfully complex and I was wondering if a simpler solution was existing.

Thanks for any help,
Damien
Reply all
Reply to author
Forward
0 new messages