Prevent tagging when associated pipeline is failing
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
As requested by customer:
I am looking for a way to make tags fail if the previous pipeline on the target branch has failed.
Tags usually represent a stable point of the project but at the moment we can tag any branch even if the pipeline for the target branch has failed. I would like to see an option in the project settings to enable this check:
Tag is only successful if the previous pipeline on the target branch finished successfully.
Proposal
If the most recent pipeline for current branch is in a failed state, then forbid any tags being applied to this branch.
Should be configurable under project settings.
Links / references
ZD: https://gitlab.zendesk.com/agent/tickets/78955
Documentation blurb
-
Why should someone use it; what's the underlying problem.
- This feature would prevent tags such as release versions being applied to failed builds.
-
What is the solution.
- Project setting that will forbid new tags being applied when most recent pipeline in a failed state.
-
How does someone use this
- Configurable option that's applied at a project level During implementation, this can then be copied and used as a starter for the documentation.)