For statistics, I want to see how long the task is in the waiting queue, so I can configure the system to complete the task on time.
If the job is only in the queue, it can be found in the waiting queue on the first page, see How can I find out how long Jenkins has been in the waiting queue?
Or http://<jenkins_url>/queue/api/json?pretty=true
Can I check somewhere to get the "Waiting time in queue" for a specific job after the job is completed?
It will be good if it can be obtained in the public jenkins API.
jenkins groovy
Larry cai
source share