My use case is pretty simple. If a user deletes an instance of my cloud provider in the UI, I want to do the needed cleanup - terminate any agents associated with that instance of the cloud provider, deregister it from our server, etc. I suppose that I can poll for the change on a timer, it just seems that it would be more efficient to be notified of the deletion.
On Friday, May 1, 2020 at 1:00:55 PM UTC-7, Jesse Glick wrote: > > On Fri, May 1, 2020 at 1:55 PM Robert Smith <[email protected] > <javascript:>> wrote: > > I can't figure out how to trigger code based upon a user deleting a > cloud config in the Jenkins UI. > > I do not think you can. Nor would we want to add such a listener, > since an admin using `configuration-as-code` might for example just > delete a block of YAML and restart Jenkins. Reconsider why you think > you needed this to begin with. > -- 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/1382eda9-1bf5-445c-8490-c2f73fe0015c%40googlegroups.com.
