-
New Feature
-
Resolution: Postponed
-
Minor
-
None
This is similar do JENKINS-35680, but for the OCI Compute Plugin.
I'd like to be able to configure a Shutdown Script, similar to the Init Script, but to run just before a slave is terminated.
My specific use case is that I use a compute image in several different cloud configurations. In each one I need to provision a disk (block volume) with a different size. I do the disk provisioning in the Init Script. However, when the slave is terminated, the disk is simply detached but stays alive, consuming resources and adding cost to our billing. I'd like to be able to delete the disk when the slave is terminated. A Shutdown Script, invoked by Jenkins just before the instance is terminated, would be ideal for situations like this.