I am afraid you need write a plugin to extend ItemListener, see also http://javadoc.jenkins.io/hudson/model/listeners/ItemListener.html#onDeleted(hudson.model.Item) or you can check the JENKINS_HOME/jobs/job_name/builds folder on Jenkins server periodically and compare what builds you have
On Tuesday, December 6, 2016 at 6:01:28 AM UTC+8, [email protected] wrote: > > In our build environment, we store build results in up to 3 different > locations. Therefore, when a build is deleted in Jenkins, we would like > for it to be deleted in the other locations as well. To accomplish this, > we need a Jenkins plugin that would execute a script every time a build is > deleted in Jenkins. > > I have only been using Jenkins for the past month (have found plugins for > our other needs), so your feedback is definitely appreciated. Please let > me know if I have overlooked an existing solution; otherwise, I will start > investigating what's necessary to create a Jenkins plugin. > > Thanks > -- 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/53fee776-bed5-4d8b-bb7c-11eeac74b22c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
