Add an option to disable retrying a job or a pipeline if "Prevent outdated deployment jobs" is configured
Release notes
Problem to solve
One of our customers is looking for a way to prevent re-running an older pipeline as it might cause issues in their deployment. Here is the scenario they encountered:
- Pipeline B <-> Commit B (merged into the default branch one week ago) intends to create a new resource B, and this pipeline ran failed one week ago.
- Pipeline A <-> Commit A (merged into the default branch 2 days ago) intends to create a new resource A, and this pipeline has been executed successfully, and resources A and B were created successfully in this pipeline B
- One engineer re-run pipeline B's job which caused resource A deleted. It's really dangerous for us that the older deployment jobs could be run when it was associated with older commits.
Unfortunately, Prevent outdated deployment jobs doesn't prevent re-running an older pipeline.
Proposal
Add an option to also prevent re-running a pipeline if Prevent outdated deployment jobs is configured,
Intended users
Feature Usage Metrics
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.