Prevent outdated deployment jobs does not work

Describe your question in as much detail as possible:

  • What are you seeing, and how does that differ from what you expect to see?
    when clicking on the ‘run again’ Button of the old Pipeline #117183 I should get an error as described here Deployment safety | GitLab
    The Job 632255 which is a rerun of old the old #632244 should not be executed as a newer Deployment in the pipeline 117186 already happened before.

  • Consider including screenshots, error messages, and/or other helpful visuals
    Pipeline #117186

    Pipeline #117183

    Output of Job 632255

  • What version are you on? Are you using self-managed or

    • GitLab (Hint: /help): self-managed 15.11.11-ee
    • Runner (Hint: /admin/runners): gitlab-runner_16.3.1_amd64
deploy config:
    name: prod
    action: start
  stage: deploy_config
  allow_failure: false
    - ls -lah out/
      - out/*
    expire_in: 1 year
  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
    Checked that “Prevent outdated deployment jobs” is enabled

Re-runs are allowed as per docs to allow rollbacks if necessary. In order to disable manual rollbacks you can clear Allow job retries for rollback deployments box. More details in the linked docs.

1 Like