Jenkins - Get all jobs on a specific day

How can I get all jobs running on a given day via Jenkins view / API?

/jenkins/view/All/builds

shows a random number of builds (after updating the number of historical assemblies change from 600 to 800 lines), for me this is history from 22 days, but I need more.

I know that I can get the history for a given job ( Jenkins: Get the number of line numbers on a specific day ), but I want an aggregated result for all jobs at once - best narrowed down to a specific day.

+3


source to share


2 answers


Install the global-build-stats plugin . This plugin will allow you to create charts according to your needs, such as daily, hourly, weekly, monthly, etc. Check it out here , this is the first plugin.

After the schedule is ready, you can get a list of tasks for a given period of time. You can even click on the graph and get information, here is an example URL after clicking on the graph:



http://jenkins.corp.com/plugin/global-build-stats/buildHistory?jobFilter=ALL&start=1438713014676&end=1438799414676&successShown=true&failuresShown=false&unstablesShown=false&abALLtersenoden=hown

The URL above will show successful jobs (you can change it in the URL for failures like failuresShown = true) for the given time.

+4


source


  • I would try to keep my builds with this Build-Keeper plugin

    With this, I could ensure that my assemblies are not deleted.




  1. The next step is to create a "date to view" groovy script by changing this -> script
+1


source







All Articles