What's the best way to get average build queue time for a job

14 views
Skip to first unread message

Jori

unread,
Feb 3, 2017, 7:29:53 AM2/3/17
to Jenkins Users
So my situation is this: I have multiple jobs and multiple computers (some with multiple executors).
Sometimes there are lots of builds and computers are not enough so builds start to get stacked into the queue.

What I'd like to do is to monitor Jenkins status in a way that I could write on a website e.g "Test job 1 has now a queue of approximately 50 minutes".
I didn't find a good way to do this using Python API at least (using jenkinsapi library). I can only get info about all the builds in queue but no way to approximate time left.
Do you have some suggestions on how to do this in case I'm missing some obvious clear way.

Thanks in advance,
Jori
Reply all
Reply to author
Forward
0 new messages