-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Pipelines - Run Failures
Currently, in Pipelines, we can declare a step as performing a “deployment” to a specific environment.
In some cases, we have a temporary deployment that we then bring down (ie undeploy) on a subsequent manual pipeline step. However, there is no way to indicate to Bitbucket that this deployment is no longer deployed.
Our use case if for testing the set up of a kubernetes cluster. We have everything fully defined in a repo, we test it and then we want to undeploy the cluster once we are done testing it, since there is a cost to continue running it.
There are a number of ways to support that. Once might be to use a minus at the end of the deployment name like:
deployment: test-
Or perhaps support something more obvious. Lots of ways to do it in the yaml.