Run script before build is deleted?

33 views
Skip to first unread message

James Green

unread,
Oct 11, 2018, 12:35:43 PM10/11/18
to Jenkins
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

Jan Monterrubio

unread,
Oct 11, 2018, 12:58:37 PM10/11/18
to jenkins...@googlegroups.com
As a post build script, probably. 

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

James Green

unread,
Oct 12, 2018, 10:39:07 AM10/12/18
to Jenkins
How so? I need this to run as the build gets expired but as it completes.


Jan Monterrubio

unread,
Oct 13, 2018, 10:36:47 AM10/13/18
to jenkins...@googlegroups.com

Slide

unread,
Oct 13, 2018, 11:32:27 AM10/13/18
to jenkins...@googlegroups.com
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.

James Green

unread,
Oct 24, 2018, 3:51:42 AM10/24/18
to Jenkins
Reply all
Reply to author
Forward
0 new messages