I filed this as https://issues.jenkins-ci.org/browse/JENKINS-54164
On Sat, 13 Oct 2018 at 16:32, Slide <[email protected]> wrote: > I think James is looking for something that allows him to run a script or > something before a build is deleted from Jenkins, NOT during a build run. > It would have to be something based on Run listener [1]. I am not aware of > anything off the top of my head, but you could search the jenkinsci org on > GitHub for RunListener and see if anything implements onDeleted. > > 1 - https://javadoc.jenkins-ci.org/hudson/model/listeners/RunListener.html > > On Sat, Oct 13, 2018, 07:36 Jan Monterrubio <[email protected]> > wrote: > >> Would the Post Build actions (execute shell) not execute in the right >> spot? >> >> >> https://www.oreilly.com/library/view/jenkins-the-definitive/9781449311155/ch05s07.html >> >> >> On Fri, Oct 12, 2018 at 09:39 James Green <[email protected]> >> wrote: >> >>> How so? I need this to run as the build gets expired but as it completes. >>> >>> >>> On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio <[email protected]> >>> wrote: >>> >>>> As a post build script, probably. >>>> >>>> On Thu, Oct 11, 2018 at 11:35 James Green <[email protected]> >>>> wrote: >>>> >>>>> Is this possible? >>>>> >>>>> What I would like to do: examine the build and discover if there are >>>>> any docker images. If there are, delete them from the registry first. >>>>> >>>>> Is this feasible? >>>>> >>>>> Thanks, >>>>> >>>>> James >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> 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 [email protected]. >>>> >>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com >>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com >> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVe5dRdtJRgjWPb8_8hLB4SzHU6Gd9NzEaDrtH0iPfF7BQ%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVe5dRdtJRgjWPb8_8hLB4SzHU6Gd9NzEaDrtH0iPfF7BQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BaxDsj5y-cYiNuezNkLKtd%3DWef_h9WbcpZ9zRFLH331iwg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
