Override git_depth variable at job level

Hello,

At global level we are declaring git_depth=3.
We are implementing a job that we actually require a full clone, so we are trying to delete that git depth variable in that specific job, but no success so far. Accroding to gitlab documentation is possible.

Variables can be defined at a global level, but also at a job level. To turn off global defined variables in your job, define an empty hash:

job_name:
  variables: {}

But no success so far. Is the example above is just for variables declared by user? or is also valid for proper variables from Gitlab CI.

Thanks

You can set GIT_DEPTH to 0 for that purpose.

See GitLab documentation shallow cloning and the Global CI/CD Setting.