사전 정의된 환경 변수 중 일부는 GitLab Runner의 최소 버전을 사용하는 경우에만 사용할 수 있습니다. 필요한 Runner 버전을 찾으려면 아래 표를 참조하십시오.
Variable | GitLab | Runner | 설명 | |
---|---|---|---|---|
| 8.15 | 1.9 | 작업을 실행하는 아티팩트 다운로드 시도 횟수 | |
| 10.6 | all | ChatOps 명령 을 트리거 한 소스 채팅 채널 | |
| 10.6 | all | ChatOps 명령에 전달 된 추가 인수 | |
| all | 0.4 | CI 환경에서 작업이 실행되었음을 표시 | |
| 11.7 | all | GitLab API v4 루트 URL | |
| all | 11.10 | 빌드가 실행되는 최상위 디렉토리 | |
| 11.2 | all | 병합 요청 전에 브랜치에있는 이전의 최신 커밋 파이프라인과 연관된 병합 요청이있는 경우에만 내용 확인 가능 | |
| 10.8 | all | 커밋에 대한 설명 : 제목이 100 자 미만이면 첫 행이 없는 메시지; 다른 경우에 전체 메시지. | |
| 10.8 | all | 전체 커밋 메시지 | |
| 9.0 | all | 프로젝트가 빌드 되는 브랜치 또는 태그 이름 | |
| 11.11 | all |
| |
| 9.0 | all |
| |
| 9.0 | all | 프로젝트가 빌드 된 커밋 리비전 | |
| 11.7 | all | | |
| 12.6 | 0.5 | 커밋 브랜치 이름. 브랜치를 빌드 할 때 나타남. | |
| 9.0 | 0.5 | 커밋 태크 이름. 태그를 빌드 할 때 나타남. | |
| 10.8 | all | 커밋의 타이틀-메시지의 전체 첫 줄 | |
| all | 11.10 | 단일 executor 내에서 빌드 실행의 고유 ID | |
| all | 11.10 | 단일 executor와 프로젝트 내에서 빌드 실행의 고유 ID | |
| 9.4 | 0.5 | CI 구성 파일의 경로. 기본은 | |
| all | 1.7 | debug logging (tracing) 의 활성 여부 | |
| 12.4 | all | 프로젝트의 기본 브랜치 이름 | |
| 10.8 | all | GitLab Deploy Token의 인증 비밀번호 는 프로젝트에 관련이있는 경우에만 존재 | |
| 10.8 | all | GitLab Deploy Token의 인증 사용자 이름은 프로젝트에 관련이 있는 경우에만 존재 | |
| all | 10.1 | Marks that the job is executed in a disposable environment (something that is created only for this job and disposed of/destroyed after the execution - all executors except | |
| 8.15 | all | The name of the environment for this job. Only present if | |
| 8.15 | all | A simplified version of the environment name, suitable for inclusion in DNS, URLs, Kubernetes labels, etc. Only present if | |
| 9.3 | all | The URL of the environment for this job. Only present if | |
| 12.3 | all | Pull Request ID from GitHub if the pipelines are for external pull requests. Available only if | |
| 12.3 | all | The source branch name of the pull request if the pipelines are for external pull requests. Available only if | |
| 12.3 | all | The HEAD SHA of the source branch of the pull request if the pipelines are for external pull requests. Available only if | |
| 12.3 | all | The target branch name of the pull request if the pipelines are for external pull requests. Available only if | |
| 12.3 | all | The HEAD SHA of the target branch of the pull request if the pipelines are for external pull requests. Available only if | |
| 9.0 | all | The unique ID of the current job that GitLab CI/CD uses internally | |
| 12.9 | 12.9 | The name of the image running the CI job | |
| 8.12 | all | The flag to indicate that job was manually started | |
| 9.0 | 0.5 | The name of the job as defined in | |
| 9.0 | 0.5 | The name of the stage as defined in | |
| 9.0 | 1.2 | Token used for authenticating with the GitLab Container Registry and downloading dependent repositories | |
| 12.10 | all | RS256 JSON web token that can be used for authenticating with third party systems that support JWT authentication, for example HashiCorp’s Vault. | |
| 11.1 | 0.5 | Job details URL | |
| 13.0 | all | Included with the value | |
| 11.9 | all | Comma-separated list of username(s) of assignee(s) for the merge request if the pipelines are for merge requests. Available only if | |
| 12.9 | all | Comma-separated list of paths of changed pages in a deployed Review App for a Merge Request. A Route Map must be configured. | |
| 12.9 | all | Comma-separated list of URLs of changed pages in a deployed Review App for a Merge Request. A Route Map must be configured. | |
| 11.6 | all | The ID of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The IID of the merge request if the pipelines are for merge requests. Available only if | |
| 11.9 | all | Comma-separated label names of the merge request if the pipelines are for merge requests. Available only if | |
| 11.9 | all | The milestone title of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The ID of the project of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The path of the project of the merge request if the pipelines are for merge requests (e.g. | |
| 11.6 | all | The URL of the project of the merge request if the pipelines are for merge requests (e.g. | |
| 11.6 | all | The ref path of the merge request if the pipelines are for merge requests. (e.g. | |
| 11.6 | all | The source branch name of the merge request if the pipelines are for merge requests. Available only if | |
| 11.9 | all | The HEAD SHA of the source branch of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The ID of the source project of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The path of the source project of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The URL of the source project of the merge request if the pipelines are for merge requests. Available only if | |
| 11.6 | all | The target branch name of the merge request if the pipelines are for merge requests. Available only if | |
| 11.9 | all | The HEAD SHA of the target branch of the merge request if the pipelines are for merge requests. Available only if | |
| 11.9 | all | The title of the merge request if the pipelines are for merge requests. Available only if | |
| 12.3 | all | The event type of the merge request, if the pipelines are for merge requests. Can be | |
| 11.5 | all | Index of the job in the job set. If the job is not parallelized, this variable is not set. | |
| 11.5 | all | Total number of instances of this job running in parallel. If the job is not parallelized, this variable is set to | |
| 11.8 | all | The configured domain that hosts GitLab Pages. | |
| 11.8 | all | URL to GitLab Pages-built pages. Always belongs to a subdomain of | |
| 8.10 | all | The unique ID of the current pipeline that GitLab CI/CD uses internally | |
| 11.0 | all | The unique ID of the current pipeline scoped to project | |
| 10.0 | all | Indicates how the pipeline was triggered. Possible options are: | |
| all | all | The flag to indicate that job was triggered | |
| 11.1 | 0.5 | Pipeline details URL | |
| all | all | The full path where the repository is cloned and where the job is run. If the GitLab Runner | |
| all | all | The unique ID of the current project that GitLab CI/CD uses internally | |
| 8.10 | 0.5 | The name of the directory for the project that is currently being built. For example, if the project URL is | |
| 8.10 | 0.5 | The project namespace (username or groupname) that is currently being built | |
| 8.10 | 0.5 | The namespace with project name | |
| 9.3 | all |
| |
| 12.3 | all | Comma-separated, lowercased list of the languages used in the repository (e.g. | |
| 12.4 | all | The human-readable project name as displayed in the GitLab web interface. | |
| 8.10 | 0.5 | The HTTP(S) address to access project | |
| 10.3 | all | The project visibility (internal, private, public) | |
| 8.10 | 0.5 | If the Container Registry is enabled it returns the address of GitLab’s Container Registry. This variable will include a | |
| 8.10 | 0.5 | If the Container Registry is enabled for the project it returns the address of the registry tied to the specific project | |
| 9.0 | all | The password to use to push containers to the GitLab Container Registry | |
| 9.0 | all | The username to use to push containers to the GitLab Container Registry | |
| 9.0 | all | The URL to clone the Git repository | |
| 8.10 | 0.5 | The description of the runner as saved in GitLab | |
| all | 10.6 | The OS/architecture of the GitLab Runner executable (note that this is not necessarily the same as the environment of the executor) | |
| 8.10 | 0.5 | The unique ID of runner being used | |
| all | 10.6 | GitLab Runner revision that is executing the current job | |
| all | 12.3 | First eight characters of GitLab Runner’s token used to authenticate new job requests. Used as Runner’s unique ID | |
| 8.10 | 0.5 | The defined runner tags | |
| all | 10.6 | GitLab Runner version that is executing the current job | |
| all | all | Mark that job is executed in CI environment | |
| 12.7 | all | The base URL of the GitLab instance, including protocol and port (like | |
| 12.1 | all | Host component of the GitLab instance URL, without protocol and port (like | |
| 12.8 | all | Port component of the GitLab instance URL, without host and protocol (like | |
| 12.8 | all | Protocol component of the GitLab instance URL, without host and port (like | |
| all | all | The name of CI server that is used to coordinate jobs | |
| all | all | GitLab revision that is used to schedule jobs | |
| all | all | GitLab version that is used to schedule jobs | |
| 11.4 | all | GitLab version major component | |
| 11.4 | all | GitLab version minor component | |
| 11.4 | all | GitLab version patch component | |
| all | 10.1 | Marks that the job is executed in a shared environment (something that is persisted across CI invocations like | |
| 8.15 | 1.9 | Number of attempts to fetch sources running a job | |
| all | all | Mark that job is executed in GitLab CI/CD environment | |
| 10.6 | all | The comma separated list of licensed features available for your instance and plan | |
| 8.12 | all | The email of the user who started the job | |
| 8.12 | all | The ID of the user who started the job | |
| 10.0 | all | The login username of the user who started the job | |
| 10.0 | all | The real name of the user who started the job | |
| 8.15 | 1.9 | Job을 실행하는 캐시 복원 시도 횟수 |
Add Comment