Dynamic environment tear down artifacts
Description
Regarding dynamic environments/review app destruction. Currently all teardown has to happen via the yml script array since the branch had been deleted.
Its problematic for complex environments such as Amazon when your environment might consist of ec2 instances, iam entries, security groups, route53 entries, secrets etc..
ideally it would be helpful if we could access some scripts to handle teardown, currently turning the git strategy to none because the branch had been deleted prevents access to scripts in the repo
Proposal
Artifacts seem to be a good solution, we could upload the teardown script as an artifact in the deploy stage, then access it on the stop environment stage.
I thought that artifacts might work like this already but I haven't been able to get the configuration to work, I'm guessing that disabling the git checkout is affecting artifact download?