How can I override Auto DevOps production rollout?

I am using Auto DevOps template with custom deployment jobs.

For development and staging environment tiers I have written the following script :

review:
  stage: review
  script:
    - *configure-kubectl
    - *custom-resources
    - *update-jupyterhub
staging:
  stage: staging
  script:
    - *configure-kubectl
    - *custom-resources
    - *update-jupyterhub

And it works well. The default Auto DevOps job is overridden by my custom script.

However, it does not work the same for production. When defining this :

production:
  stage: production
  when: manual
  script:
    - *configure-kubectl
    - *custom-resources
    - *update-jupyterhub

Giltab runs the Auto DevOps script instead of mine.

I found the fix.

As I am using the manual production rollout, I had to write my job override as follows.

production_manual:
  stage: production
  when: manual
  script:
    - *configure-kubectl
    - *custom-resources
    - *update-jupyterhub
1 Like