Is there way to disable retry of canceled job?

  • GitLab Version: 13.9.4-ee
  • How do we disable retry of job when it was canceled?
    In the example, I want disable retry action on “Finish” job, when I have canceled the “Finish” job.

gitlab-ci.yml file - snippet:

image: docker-dev.ourhost.com/centos:0.0.5
stages:

  • release_approval
  • finish

-----------

----------

Approve:
stage: release_approval
tags:
- shared-runner
script:
- ./approval.sh
interruptible: false
environment:
name: $ENVIRONMENT
when: manual

Finish:
stage: finish
tags:
- shared-runner
script:
- echo “Approval Completed”
needs:
- job: Approve
artifacts: true
when: on_success
allow_failure: false
retry: 0

Hi @subbareddy.truist
I am not aware of any option that would do what you seek. The retry button in UI is always there and available for any job.