add option to when: attribute for on_cancel
under review
Minjun Seong
under review
Minjun Seong
Hi folks, I'm a product manager at CircleCI. We have introduced flexible job dependency which allows you to specify which job statuses should trigger downstream jobs. For example, when a job is manually cancelled, flexible job dependency can be used to define which clean up jobs should run: https://circleci.com/docs/guides/orchestrate/workflows/#flexible-job-dependency
We'd love your feedback on whether this addresses your concerns or if there are remaining limitations we should prioritize.
B
Brett Rogerson
Definitely needed. You already do things like push Github commit status updates on cancel. There must be some kind of internal on_cancel handling already?
E
Evgeniy Sabilin
C'mon this is a basic survival tool.. why this does not exist yet?
j
juansmrad@gmail.com
I was looking for this to be a thing already. Please bring it.
It is useful when you have a job running tests and you see the test have started to fail and you want to cancel right away to identify the failed test avoiding the job to keep running.
If we had a when for cancelled jobs we could add it to the store artifacts or store test results and be able to get the artifact data for the failed tests that run before we cancelled the build.
T
There Pp_Online
This would be really useful
P
Phil Leger
Created a fresh issue to list the old threads: https://discuss.circleci.com/t/feature-add-option-to-when-attribute-for-on-cancel/31738
P
Phil Leger
There are multiple dead threads on the forums: