Skip to content

Forward deployment - warn users on "Retry"

Problem to solve

As of Gitlab 12.9, when a deployment job fails because a newer deployment was deployed first, the following error message shows up for the failed job. The user is not further warned when clicking the retry button.

Screenshot
Screenshot_from_2020-03-16_11-31-51

Intended users

Proposal

  • Add an alert modal when the Retry button is clicked
  • Modal contents:
### Are you sure you want to retry this job?

You're about to retry a job that failed because it attempted to deploy code that is older than the latest deployment. Retrying this job could result in overwriting the environment with the older source code. [More information](#)

Are you sure you want to proceed?

[Cancel](tertiary button) [Retry job](Primary button, danger)
  • After completing the modal by using the Retry job button, the page will refresh, the modal will have disappeared, and the job's status will have changed to running.

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references

Edited by Dimitrie Hoekstra