If a Job fails a script needs to be run to send a specific message to Pagerduty.
In this script is some additional information to find the problem…
- export TF_WARN_OUTPUT_ERRORS=1
- terraform destroy -force
When the destroy fails the notify-undeploy-failed is not run.
From the pipeline the destroy is marked with a problem. But the notify-undeploy-failed is not triggerd.
Any suggestions or advice?