gitlab-ci-local icon indicating copy to clipboard operation
gitlab-ci-local copied to clipboard

CI_PROJECT_ROOT_NAMESPACE predefined variable is not defined

Open rgalonso opened this issue 4 months ago • 0 comments

The CI_PROJECT_ROOT_NAMESPACE predefined variable is not defined.

From the GitLab documentation:

The root project namespace (username or group name) of the job. For example, if CI_PROJECT_NAMESPACE is root-group/child-group/grandchild-group, CI_PROJECT_ROOT_NAMESPACE is root-group.

Minimal .gitlab-ci.yml illustrating the issue

---
succeed-if-defined:
  image: ubuntu
  script:
    - echo "CI_PROJECT_ROOT_NAMESPACE is '${CI_PROJECT_ROOT_NAMESPACE}'"
    - test -n "${CI_PROJECT_ROOT_NAMESPACE}"

Expected behavior Above job succeeds

Host information Ubuntu gitlab-ci-local 4.53.0

Containerd binary docker

Additional context Add any other context about the problem here.

rgalonso avatar Oct 02 '24 23:10 rgalonso