Skip to content

Remove 'No deployments yet' from the Environment list in Pipelines when using manual deployments

Description

When you mention an environment in the ci config it creates and environment even if it was configured to run manually (when: manual). This creates a lot of clutter in the environment list. Especially when working with dynamic environments.

UPDATE: It looks like once the environment is created with 'No deployments yet' the URL is also not updated when you later deploy to it.

Proposal

No more 'No deployments yet'. The default behavior is to only create an environment if deploying to it.

To account for situations where users prefer environments to always be created, users can specify make when: always

Links / references

https://docs.gitlab.com/ce/ci/environments.html#dynamic-environments

https://docs.gitlab.com/ce/ci/yaml/#only-and-except

Edited by Jackie Porter