That's great idea. Thank you Jeff. On Wednesday, January 8, 2020 at 6:20:43 PM UTC+2, Jeff wrote: > > You could also write a plugin that implements the RunListener extension, > and gather the stats as the jobs complete. In some sense, that might be > better, because you don't have to worry about builds being discarded before > it runs. Here's an example of that > https://github.com/jenkinsci/github-autostatus-plugin/blob/master/src/main/java/org/jenkinsci/plugins/githubautostatus/BuildStatusJobListener.java#L62 > > > On Wed, Jan 8, 2020 at 7:57 AM Jeff Pearce <[email protected] > <javascript:>> wrote: > >> I think the Thin Backup plugin does that; you might look at it for ideas. >> >> >> >> *From: *<[email protected] <javascript:>> on behalf of Daniel >> Anechitoaie <[email protected] <javascript:>> >> *Reply-To: *"[email protected] <javascript:>" < >> [email protected] <javascript:>> >> *Date: *Wednesday, January 8, 2020 at 7:38 AM >> *To: *Jenkins Developers <[email protected] <javascript:>> >> *Subject: *Is there ant API/way to make a plugin that runs some action >> periodically? >> >> >> >> Notice: This email is from an external sender. >> >> >> >> I need to gather some statistics (nr of jobs, nr of builds, their status, >> etc) for our internal Jenkins and post that report to some HTTPS endpoint. >> >> Is there a way that I can make a plugin or something, that is not an >> actual job, so that doesn't require an actual agent/worker that will do >> this? >> >> Some Jenkins Java API that would allow me to run some code in the >> background every day or so. Kind of like how Jenkins checks for plugin >> updates, new versions, etc. >> >> >> >> My other option would be to use the REST API and pull this data out of >> Jekins if possible but I think pushing it from Jenkins might be better in >> my case. >> >> >> >> Is there any way this can be done? And APIs that Jenkins has for this? >> Any particular Java class that needs to be extended. >> >> >> >> Thank you. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/7c041c4d-2f5e-4f1d-8803-782e40bbdd80%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/7c041c4d-2f5e-4f1d-8803-782e40bbdd80%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/783F8984-1D7A-4F7E-96B9-6C6DF959C1BD%40godaddy.com >> >> <https://groups.google.com/d/msgid/jenkinsci-dev/783F8984-1D7A-4F7E-96B9-6C6DF959C1BD%40godaddy.com?utm_medium=email&utm_source=footer> >> . >> >
-- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/fbc806c0-3049-4a81-8ae8-4169545d3545%40googlegroups.com.
