Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Variable

GitLab

Runner

설명

ARTIFACT_DOWNLOAD_ATTEMPTS

8.15

1.9

작업을 실행하는 아티팩트 다운로드 시도 횟수

CHAT_CHANNEL

10.6

all

ChatOps 명령 을 트리거 한 소스 채팅 채널

CHAT_INPUT

10.6

all

ChatOps 명령에 전달 된 추가 인수

CI

all

0.4

CI 환경에서 작업이 실행되었음을 표시

CI_API_V4_URL

11.7

all

GitLab API v4 루트 URL

CI_BUILDS_DIR

all

11.10

빌드가 실행되는 최상위 디렉토리

CI_COMMIT_BEFORE_SHA

11.2

all

병합 요청 전에 브랜치에있는 이전의 최신 커밋

파이프라인과 연관된 병합 요청이있는 경우에만 내용 확인 가능

CI_COMMIT_DESCRIPTION

10.8

all

커밋에 대한 설명 : 제목이 100 자 미만이면 첫 행이 없는 메시지; 다른 경우에 전체 메시지.

CI_COMMIT_MESSAGE

10.8

all

전체 커밋 메시지

CI_COMMIT_REF_NAME

9.0

all

프로젝트가 빌드 되는 브랜치 또는 태그 이름

CI_COMMIT_REF_PROTECTED

11.11

all

true : job이 protected reference에서 실행, 그렇지 않을 경우 false 

CI_COMMIT_REF_SLUG

9.0

all

$CI_COMMIT_REF_NAME 소문자, 63 bytes로 단축,  0-9 와 a-z 를 제외한 모든 항목은  - 로 대체됨. 앞의 /와 마지막 -은 금지. URLs, 호스트이름과 domain 이름에 사용됨.

CI_COMMIT_SHA

9.0

all

프로젝트가 빌드 된 커밋 리비전

CI_COMMIT_SHORT_SHA

11.7

all

 CI_COMMIT_SHA의 처음 8자

CI_COMMIT_BRANCH

12.6

0.5

커밋 브랜치 이름. 브랜치를 빌드 할 때 나타남.

CI_COMMIT_TAG

9.0

0.5

커밋 태크 이름. 태그를 빌드 할 때 나타남.

CI_COMMIT_TITLE

10.8

all

커밋의 타이틀-메시지의 전체 첫 줄

CI_CONCURRENT_ID

all

11.10

단일 executor 내에서 빌드 실행의 고유 ID

CI_CONCURRENT_PROJECT_ID

all

11.10

단일 executor와 프로젝트 내에서 빌드 실행의 고유 ID

CI_CONFIG_PATH

9.4

0.5

CI 구성 파일의 경로. 기본은 .gitlab-ci.yml

CI_DEBUG_TRACE

all

1.7

debug logging (tracing) 의 활성 여부

CI_DEFAULT_BRANCH

12.4

all

프로젝트의 기본 브랜치 이름

CI_DEPLOY_PASSWORD

10.8

all

GitLab Deploy Token의 인증 비밀번호 는 프로젝트에 관련이있는 경우에만 존재

CI_DEPLOY_USER

10.8

all

GitLab Deploy Token의 인증 사용자 이름은 프로젝트에 관련이 있는 경우에만 존재

CI_DISPOSABLE_ENVIRONMENT

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 shell and ssh). If the environment is disposable, it is set to true, otherwise it is not defined at all.

CI_ENVIRONMENT_NAME

8.15

all

The name of the environment for this job. Only present if environment:name is set.

CI_ENVIRONMENT_SLUG

8.15

all

A simplified version of the environment name, suitable for inclusion in DNS, URLs, Kubernetes labels, etc. Only present if environment:name is set.

CI_ENVIRONMENT_URL

9.3

all

The URL of the environment for this job. Only present if environment:url is set.

CI_EXTERNAL_PULL_REQUEST_IID

12.3

all

Pull Request ID from GitHub if the pipelines are for external pull requests. Available only if only: [external_pull_requests] or rules syntax is used and the pull request is open.

CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME

12.3

all

The source branch name of the pull request if the pipelines are for external pull requests. Available only if only: [external_pull_requests] or rules syntax is used and the pull request is open.

CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA

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 only: [external_pull_requests] or rules syntax is used and the pull request is open.

CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME

12.3

all

The target branch name of the pull request if the pipelines are for external pull requests. Available only if only: [external_pull_requests] or rules syntax is used and the pull request is open.

CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA

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 only: [external_pull_requests] or rules syntax is used and the pull request is open.

CI_JOB_ID

9.0

all

The unique ID of the current job that GitLab CI/CD uses internally

CI_JOB_IMAGE

12.9

12.9

The name of the image running the CI job

CI_JOB_MANUAL

8.12

all

The flag to indicate that job was manually started

CI_JOB_NAME

9.0

0.5

The name of the job as defined in .gitlab-ci.yml

CI_JOB_STAGE

9.0

0.5

The name of the stage as defined in .gitlab-ci.yml

CI_JOB_TOKEN

9.0

1.2

Token used for authenticating with the GitLab Container Registry and downloading dependent repositories

CI_JOB_JWT

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.

CI_JOB_URL

11.1

0.5

Job details URL

CI_KUBERNETES_ACTIVE

13.0

all

Included with the value true only if the pipeline has a Kubernetes cluster available for deployments. Not included if no cluster is availble. Can be used as an alternative to only:kubernetes/except:kubernetes with rules:if

CI_MERGE_REQUEST_ASSIGNEES

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 only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_CHANGED_PAGE_PATHS

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.

CI_MERGE_REQUEST_CHANGED_PAGE_URLS

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.

CI_MERGE_REQUEST_ID

11.6

all

The ID of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_IID

11.6

all

The IID of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_LABELS

11.9

all

Comma-separated label names of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_MILESTONE

11.9

all

The milestone title of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_PROJECT_ID

11.6

all

The ID of the project of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_PROJECT_PATH

11.6

all

The path of the project of the merge request if the pipelines are for merge requests (e.g. namespace/awesome-project). Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_PROJECT_URL

11.6

all

The URL of the project of the merge request if the pipelines are for merge requests (e.g. http://192.168.10.15:3000/namespace/awesome-project). Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_REF_PATH

11.6

all

The ref path of the merge request if the pipelines are for merge requests. (e.g. refs/merge-requests/1/head). Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_SOURCE_BRANCH_NAME

11.6

all

The source branch name of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_SOURCE_BRANCH_SHA

11.9

all

The HEAD SHA of the source branch of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used, the merge request is created, and the pipeline is a merged result pipeline

CI_MERGE_REQUEST_SOURCE_PROJECT_ID

11.6

all

The ID of the source project of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_SOURCE_PROJECT_PATH

11.6

all

The path of the source project of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_SOURCE_PROJECT_URL

11.6

all

The URL of the source project of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_TARGET_BRANCH_NAME

11.6

all

The target branch name of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_TARGET_BRANCH_SHA

11.9

all

The HEAD SHA of the target branch of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used, the merge request is created, and the pipeline is a merged result pipeline

CI_MERGE_REQUEST_TITLE

11.9

all

The title of the merge request if the pipelines are for merge requests. Available only if only: [merge_requests] or rules syntax is used and the merge request is created.

CI_MERGE_REQUEST_EVENT_TYPE

12.3

all

The event type of the merge request, if the pipelines are for merge requests. Can be detachedmerged_result or merge_train.

CI_NODE_INDEX

11.5

all

Index of the job in the job set. If the job is not parallelized, this variable is not set.

CI_NODE_TOTAL

11.5

all

Total number of instances of this job running in parallel. If the job is not parallelized, this variable is set to 1.

CI_PAGES_DOMAIN

11.8

all

The configured domain that hosts GitLab Pages.

CI_PAGES_URL

11.8

all

URL to GitLab Pages-built pages. Always belongs to a subdomain of CI_PAGES_DOMAIN.

CI_PIPELINE_ID

8.10

all

The unique ID of the current pipeline that GitLab CI/CD uses internally

CI_PIPELINE_IID

11.0

all

The unique ID of the current pipeline scoped to project

CI_PIPELINE_SOURCE

10.0

all

Indicates how the pipeline was triggered. Possible options are: pushwebtriggerscheduleapipipelineparent_pipelineexternalchatmerge_request_event, and external_pull_request_event. For pipelines created before GitLab 9.5, this will show as unknown

CI_PIPELINE_TRIGGERED

all

all

The flag to indicate that job was triggered

CI_PIPELINE_URL

11.1

0.5

Pipeline details URL

CI_PROJECT_DIR

all

all

The full path where the repository is cloned and where the job is run. If the GitLab Runner builds_dir parameter is set, this variable is set relative to the value of builds_dir. For more information, see Advanced configuration for GitLab Runner.

CI_PROJECT_ID

all

all

The unique ID of the current project that GitLab CI/CD uses internallyCD가 내부적으로 사용하는 현재 프로젝트의 고유 ID

CI_PROJECT_NAME

8.10

0.5

The name of the directory for the project that is currently being built. For example, if the project URL is 현재 빌드 중인 프로젝트의 디렉터리 이름.
예) 프로젝트 URL이 gitlab.example.com/group-name/project-1, the  인 경우 CI_PROJECT_NAME would be NAME은 project-1.

CI_PROJECT_NAMESPACE

8.10

0.5

The project namespace (username or groupname) that is currently being built현재 빌드 중인 프로젝트 네임 스페이스(사용자 이름 또는 그룹 이름)

CI_PROJECT_PATH

8.10

0.5The namespace with project name

프로젝트 이름을 가진 네임 스페이스

CI_PROJECT_PATH_SLUG

9.3

all

URL 및 도메인 이름으로 사용
$CI_PROJECT_PATH lowercased and with everything except PATH는 소문자, 0-9 and 9과 a-z replaced with -. Use in URLs and domain names.CIz를 제외한 모든 것은 -로 대치

CI_PROJECT_REPOSITORY_LANGUAGES

12.3

allComma-separated, lowercased list of the languages used in the repository (e.g. 

Repository에서 사용되는 언어를 쉼표로 구분한 하위 분류 목록
예) ruby, javascript, html, css)

CI_PROJECT_TITLE

12.4

allThe

human-readable project name as displayed in the GitLab web interfaceGitLab 웹 인터페이스에 표시된 대로 사람이 읽을 수 있는 프로젝트 이름.

CI_PROJECT_URL

8.10

0.5

The 프로젝트에 액세스할 HTTP(S) address to access project주소

CI_PROJECT_VISIBILITY

10.3

all

The project visibility 프로젝트 가시성 (internal, private, public)

CI_REGISTRY

8.10

0.5If the

Container Registry is enabled it returns the address of GitLab’s Container Registry. This variable will include a :port value if one has been specified in the registry configuration.Container Registry가 활성화된 경우 GitLab의 Container Registry 주소를 반환

CI_REGISTRY_IMAGE

8.10

0.5If the Container Registry is enabled for the project it returns the address of the registry tied to the specific project

컨테이너 레지스트리가 프로젝트에 대해 활성화된 경우 특정 프로젝트에 연결된 레지스트리의 주소를 반환, : 포트값이 레지스트리 구성에 지정된 경우 포함

CI_REGISTRY_PASSWORD

9.0

allThe password to use to push containers to the GitLab Container Registry

GitLab 컨테이너 레지스트리에 컨테이너를 푸시하는데 사용할 비밀번호

CI_REGISTRY_USER

9.0

allThe username to use to push containers to the GitLab Container Registry

GitLab 컨테이너 레지스트리에 컨테이너를 푸시하는데 사용할 사용자 이름

CI_REPOSITORY_URL

9.0

allThe

URL to clone the Git repositoryGit 저장소를 복제할 URL

CI_RUNNER_DESCRIPTION

8.10

0.5The description of the runner as saved in GitLab

GitLab에서 저장한 Runner 대한 설명

CI_RUNNER_EXECUTABLE_ARCH

all

10.6The

OS/architecture of the GitLab Runner executable (note that this is not necessarily the same as the environment of the executor)GitLab Runner 실행 파일의 OS 및 아키텍처
※ 반드시 실행자의 환경과 같을 수 없다는 점에 주의

CI_RUNNER_ID

8.10

0.5The unique ID of runner being used

사용중인 Runner 고유 ID로 사용

CI_RUNNER_REVISION

all

10.6

현재 job을 실행하는 GitLab Runner revision that is executing the current job개정판

CI_RUNNER_SHORT_TOKEN

all

12.3First eight characters of GitLab Runner’s token used to authenticate new job requests. Used as Runner’s unique ID

새로운 Job request에 사용되는 Runner 토큰의 첫 번째 8글자, Runner 고유 ID로 사용

CI_RUNNER_TAGS

8.10

0.5

The defined 정의된 runner tags

CI_RUNNER_VERSION

all

10.6

현재 Job을 실행하는 GitLab Runner version that is executing the current job버전

CI_SERVER

all

allMark

that job is executed in CI environment작업이 CI 환경에서 실행됨으로 표시

CI_SERVER_URL

12.7

all

The base URL of the GitLab instance, including protocol and port (like 프로토콜 및 포트를 포함한 GitLab 인스턴스의 기본
예) https://gitlab.example.com:8080)

CI_SERVER_HOST

12.1

all

Host component of the GitLab instance URL, without protocol and port (like 프로토콜 및 포트가 없는 GitLab 인스턴스 URL의 호스트 구성 요소
예) gitlab.example.com)

CI_SERVER_PORT

12.8

allPort

component of the GitLab instance URL, without host and protocol (like 3000)호스트 및 프로토콜(3000)이 없는 GitLab 인스턴스 URL의 포트 구성 요소

CI_SERVER_PROTOCOL

12.8

allProtocol

component of the GitLab instance URL, without host and port (like https)호스트 및 포트(https)가 없는 GitLab 인스턴스 URL의 프로토콜 구성 요소

CI_SERVER_NAME

all

allThe name of CI server that is used to coordinate

jobsJob 조정에 사용되는 CI 서버의 이름

CI_SERVER_REVISION

all

allGitLab

revision that is used to schedule jobsschedule jobs에 사용되는 GitLab 개정판

CI_SERVER_VERSION

all

allGitLab

version that is used to schedule jobsschedule jobs에 사용되는 GitLab 버전

CI_SERVER_VERSION_MAJOR

11.4

all

GitLab version major component버전 메이져 구성 요소

CI_SERVER_VERSION_MINOR

11.4

all

GitLab version minor component버전 마이너 구성 요소

CI_SERVER_VERSION_PATCH

11.4

all

GitLab version patch component버전 패치 구성 요소

CI_SHARED_ENVIRONMENT

all

10.1Marks that the job is executed in a shared environment (something that is persisted across CI invocations like shell or ssh executor). If the environment is shared, it is set to true, otherwise it is not defined at all.

Job이 공유환경(shell이나 ssh executor 등 CI 호출 후에도 지속되는 것)에서 실행되는 것을 표시하고 환경이 공유되어 있으면 true그렇지 않으면 정의되지 않음

GET_SOURCES_ATTEMPTS

8.15

1.9Number of attempts to fetch sources running a job

Job을 실행하는 소스를 가져오려고 시도하는 횟수

GITLAB_CI

all

all

Mark that job is executed in GitLab CI/CD environment환경에서 job이 실행됨을 표시

GITLAB_FEATURES

10.6

allThe comma separated list of licensed features available for your instance and plan

라이센스가 부여된 기능을 쉼표로 구분한 목록
예) 인스턴스, 계획

GITLAB_USER_EMAIL

8.12

allThe email of the user who started the job

Job을 시작한 사용자의 Email

GITLAB_USER_ID

8.12

allThe

ID of the user who started the jobJob을 시작한 사용자의 ID

GITLAB_USER_LOGIN

10.0

allThe login username of the user who started the job

Job을 시작한 사용자의 로그인 사용자 이름

GITLAB_USER_NAME

10.0

allThe real name of the user who started the job

Job을 시작한 사용자 이름

RESTORE_CACHE_ATTEMPTS

8.15

1.9Number of attempts to restore the cache running a job

Job을 실행할때 캐시의 복원을 시도하는 횟수