drone / proposal

Drone Project Design Documents
13 stars 4 forks source link

[drone stage trigger] trigger stage from pipeline when the-status-is-canceled #23

Open pranavpadmasali opened 2 years ago

pranavpadmasali commented 2 years ago

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.

haritowa commented 1 year ago

I need it for steps too

ShruthiHubb commented 1 year ago

Hi @pranavpadmasali & @haritowa, can you help us answering following questions to help you further on this issue?

  1. What runner have you used for your use-case?
  2. Can you give us complete details on your ASK?

Thanks

lifeiscontent commented 1 year ago

@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

haritowa commented 1 year ago

@ShruthiHubb hello.

1: Exec runner 2: Yes

ShruthiHubb commented 1 year ago

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.

haritowa commented 1 year ago

@ShruthiHubb any updates?