Open pranavpadmasali opened 2 years ago
I need it for steps too
Hi @pranavpadmasali & @haritowa, can you help us answering following questions to help you further on this issue?
Thanks
@ShruthiHubb my team is using the Kubernetes runner, ideally the workflow would look something as follows:
in drone config add a property to tell the runner about a script to run in the scenario that a build was cancelled by a user this would allow us to tell kubernetes to clean up the pods for that build
@ShruthiHubb hello.
1: Exec runner 2: Yes
Thanks for sharing the details @pranavpadmasali @haritowa @lifeiscontent. We are working on the new feature request and will have an update on the progress shortly.
@ShruthiHubb any updates?
Goals
Scenario
In our case, we spin multiple VMs in a pipeline on a host machine. If any of the previous stages fails these VMs are destroyed by the trigger if the status of the pipeline is failed or passed. If someone abruptly stops the pipeline by clicking on the Cancel pipeline button these VMs or any other resources cannot be released or destroyed. If we can add a status of Cancelled so that a stage can run and release the resources.