Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66429

Implement an new option for a Shutdown Script that runs before the slaves terminate

XMLWordPrintable

      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.

            sindhusri16 Yarlagadda Sindhu Sri
            gnustavo Gustavo Chaves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: