Can I execute a script every time a build gets deleted?

29 views
Skip to first unread message

jleggett

unread,
Dec 5, 2016, 2:35:32 PM12/5/16
to Jenkins Users
Our build artifacts are stored outside of Jenkins.  Each jenkins build result(artifacts) can possibly be located in 3 different places on the file system.  To keep the file system from becoming filled with old builds, I would like to execute a script every time a build is deleted in Jenkins to ensure the other locations are deleted as well.  

I've reviewed the existing plugins, but I do not see a way to achieve this.  Does anyone know how to accomplish this?  Have I missed something obvious?

Christoph Nenning

unread,
Dec 6, 2016, 3:11:54 AM12/6/16
to jenkins...@googlegroups.com
Hi,


on linux this could be done with incron.


Regards,
Christoph
> --
> 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/243c85c9-93e5-4883-a791-03dfb1abac0a%
> 40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.


This Email was scanned by Sophos Anti Virus

Baptiste Mathus

unread,
Dec 16, 2016, 3:25:11 PM12/16/16
to jenkins...@googlegroups.com
WS Cleanup Plugin?

2016-12-06 9:11 GMT+01:00 Christoph Nenning <Christop...@lex-com.net>:
Hi,


on linux this could be done with incron.


Regards,
Christoph



> From: jleggett <jleg...@lenovo.com>

> To: Jenkins Users <jenkinsci-users@googlegroups.com>,
> Date: 05.12.2016 20:35
> Subject: Can I execute a script every time a build gets deleted?
> Sent by: jenkinsci-users@googlegroups.com
>
> Our build artifacts are stored outside of Jenkins.  Each jenkins
> build result(artifacts) can possibly be located in 3 different
> places on the file system.  To keep the file system from becoming
> filled with old builds, I would like to execute a script every time
> a build is deleted in Jenkins to ensure the other locations are
> deleted as well.  

>
> I've reviewed the existing plugins, but I do not see a way to
> achieve this.  Does anyone know how to accomplish this?  Have I
> missed something obvious?

> --
> 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,

> To view this discussion on the web visit

> d/msgid/jenkinsci-users/243c85c9-93e5-4883-a791-03dfb1abac0a%
> 40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.


This Email was scanned by Sophos Anti Virus

--
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-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/OF831A28E0.CBA8BFCA-ONC1258081.002CDF23-C1258081.002CF6B9%40lex-com.net.
Reply all
Reply to author
Forward
0 new messages