On Wed, Jan 8, 2020 at 5:59 PM Daniel Anechitoaie <[email protected]> wrote:
> Awesome. So there are two options, this one with AsyncPeriodicWorker and > the one from @Jeff where you can run it after each job. > I'll look into seeing which one fits best for the current use case. > Possibly both, depending on what you want to achieve. RunListener is the way to get results of builds in a live way. So you may use it to gather stats on failure rates, etc. Then, if you do not want to send things progressively, but batch them, you'd store these results in some intermediate structure. Then, if willing to send these results somewhere on a regular basis, you would implement an AsyncPeriodicWork to do it. HTH > Thank you. > > > On Wednesday, January 8, 2020 at 6:54:50 PM UTC+2, Jesse Glick wrote: >> >> On Wed, Jan 8, 2020 at 10:37 AM Daniel Anechitoaie >> <[email protected]> wrote: >> > Some Jenkins Java API that would allow me to run some code in the >> background every day or so. >> >> https://javadoc.jenkins.io/hudson/model/AsyncPeriodicWork.html >> > -- > 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/783b22ad-ed65-4021-bdd1-0d497b3cd703%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/783b22ad-ed65-4021-bdd1-0d497b3cd703%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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPyTVp1oW%3DAp7Tpg793XZNJNQWQnCrPv-7vU339-_FbtzY2o9A%40mail.gmail.com.
