O Que É CI_PROJECT_ID?
CI_PROJECT_ID é o identificador numérico único, válido para toda a instância, do projeto.
CI_PROJECT_ID é a chave estável para chamadas de API do GitLab, já que nunca muda mesmo que o projeto seja renomeado ou movido.
Uso
Chame a API contra o projeto: ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}.
Principais conclusões
- CI_PROJECT_ID é o ID numérico do projeto.
- Estável durante renomeações/movimentações.
- Use-o para chamadas de API.
Guias relacionados
What Is CI_PROJECT_PATH?CI_PROJECT_PATH is the namespace/project path of a GitLab project in CI, like mygroup/myapp. Learn its uses.
What Is CI_JOB_TOKEN?CI_JOB_TOKEN is a short-lived token GitLab CI jobs use to authenticate to GitLab. Learn what it can and canno…
What Is CI_PROJECT_NAME?CI_PROJECT_NAME is the name of the GitLab project running a pipeline. Learn how it differs from the path.