GoCD pipeline model has a special task which can be run when a stage is cancelled:
https://docs.gocd.org/current/advanced_usage/dev_clean_up_when_cancel.html
I have created a test pipeline containing such an on-cancel task and when I export it in the Groovy format to see how it would look like in the original source file there is nothing related to this task in the resulted export file, only regular tasks are present. Is it a bug or this kind of task is not supported in the plugin?
In my case it is critical to cleanup after the cancellation of a stage, otherwise next pipelines will fail. And also I can only use the Groovy plugin since I configure parallel matrix jobs in an .each loop which a YAML/JSON plugin wouldn't be able to describe.
Groovy Configuration plugin version: 2.1.3-475
GoCD pipeline model has a special task which can be run when a stage is cancelled:
https://docs.gocd.org/current/advanced_usage/dev_clean_up_when_cancel.html
I have created a test pipeline containing such an on-cancel task and when I export it in the Groovy format to see how it would look like in the original source file there is nothing related to this task in the resulted export file, only regular tasks are present. Is it a bug or this kind of task is not supported in the plugin?
In my case it is critical to cleanup after the cancellation of a stage, otherwise next pipelines will fail. And also I can only use the Groovy plugin since I configure parallel matrix jobs in an .each loop which a YAML/JSON plugin wouldn't be able to describe.
Groovy Configuration plugin version: 2.1.3-475