How to find number of builds in Jenkins queue per hour for last 24 hours -
i need report metrics on our jenkins server. 1 requirement want find out how many builds in queued state per hour in freestyle jenkins job during last 24 hours.
builds triggered commits in git repo. have configured jenkins job run 2 concurrent builds , hence commits go in queued state.
i see hudson.instance.queue.items.length returns number of builds in queue currently. how find out how many builds scheduled, lets say, @ 4 pm today. (current time being 6 pm).
i want find programmable groovy way fetch info jenkins , plug in larger groovy script fetches other data part of metrics requirements.
thanks
Comments
Post a Comment