Allow to remove CI environments
Problem to solve
Allow to actually delete (not: stop) CI/CD environments defined in .gitlab-ci.yml or created using the web ui.
Intended users
Unsure
Further details
Projects may contain stale CI/CD environments. Environments may have been renamed, or some stages of deployment are just not needed any longer. Finally, one might just want to clean up the deployment history of long-running projects.
Proposal
Add a Delete
button in the environment overview window. Enable it iff the environment is stopped.
Permissions and Security
Use the same permissions that are required to access confidential CI/CD settings and modify environment settings.
Documentation
Unsure
Testing
There may be some race conditions when pipelines targetting an environment are currently running.
What does success look like, and how can we measure that?
The environment is removed. In case of newly created pipelines referring to a deleted environment, it is recreated just as if it hasn't existed before.