You can see an example of doing something like that at
https://github.com/jenkinsci/associated-files-plugin/blob/master/src/main/groovy/org/jenkinsci/plugins/associatedfiles/AssociatedFilesRunListener.groovy
.

A.

On Tue, Dec 22, 2015 at 1:11 PM, John Mellor <[email protected]>
wrote:

> Is there a Jenkins plugin that would allow me to hook the deletion of a
> build?
>
>
>
> I can’t continue to add large artifacts to my repositories forever, and
> need to construct some automated mechanism to delete them throughout the
> enterprise when they are no longer useful.
>
> I want to add lifecycle to the process, and delete the artifacts from
> various repositories, deployment archives, etc. when that build is removed
> from Jenkins.
>
> That way I can use the “Keep Forever” flag to prevent important builds
> from just disappearing, and when an old build is automatically deleted, and
> when the “Discard old builds” criteria is reached, I have an automated
> lifecycle management mechanism that I can customize as required.
>
>
>
> Does such a plugin already exist?
>
> --
> 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/0585fedaa43345df9c935e20ad651209%40mbx01colo01p.esentire.local
> <https://groups.google.com/d/msgid/jenkinsci-users/0585fedaa43345df9c935e20ad651209%40mbx01colo01p.esentire.local?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/CAPbPdOb06BdnAGL6CGDbu5wfkkH8XXoad2MBgP1LOhoEfsupXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to