REST api - Get results of jobs that fingerprint was used in.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

REST api - Get results of jobs that fingerprint was used in.

Kajetan Krykwiński
Hi,
Jenkins has feature that shows fingerprints, where they were used and what was the result of each build using particular artifact (JENKINS_URI/fingerprint/ID/)
However API exposes usage data a bit differently, as build id ranges:

  "usage" : [
   
{
     
"name" : "JOB_NAME",
     
"ranges" : {
       
"ranges" : [
         
{
           
"end" : 64,
           
"start" : 63
         
}
       
]
     
}
   
},

I cannot find any way to just get list of builds for each job that used this fingerprint + results of each build (the same data that Jenkins displays on page). Of course I could just run through all builds using API to get this information, but it won't be the most effective solution (let's assume that single fingerprint in our case can be used in 50+ jobs and a few builds in each job).
Is there any way to get this data in not so many API calls?

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2f7777ea-863e-4392-a18d-714c961a6817%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.