[ { "name": "CHAT_CHANNEL", "description": "The Source chat channel that triggered the [ChatOps](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../chatops/index.md) command." }, { "name": "CHAT_INPUT", "description": "The additional arguments passed with the [ChatOps](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../chatops/index.md) command." }, { "name": "CI", "description": "Available for all jobs executed in CI/CD. `true` when available." }, { "name": "CI_API_V4_URL", "description": "The GitLab API v4 root URL." }, { "name": "CI_BUILDS_DIR", "description": "The top-level directory where builds are executed." }, { "name": "CI_COMMIT_AUTHOR", "description": "The author of the commit in `Name ` format." }, { "name": "CI_COMMIT_BEFORE_SHA", "description": "The previous latest commit present on a branch. Is always `0000000000000000000000000000000000000000` in pipelines for merge requests." }, { "name": "CI_COMMIT_BRANCH", "description": "The commit branch name. Available in branch pipelines, including pipelines for the default branch. Not available in merge request pipelines or tag pipelines." }, { "name": "CI_COMMIT_DESCRIPTION", "description": "The description of the commit. If the title is shorter than 100 characters, the message without the first line." }, { "name": "CI_COMMIT_MESSAGE", "description": "The full commit message." }, { "name": "CI_COMMIT_REF_NAME", "description": "The branch or tag name for which project is built." }, { "name": "CI_COMMIT_REF_PROTECTED", "description": "`true` if the job is running for a protected reference." }, { "name": "CI_COMMIT_REF_SLUG", "description": "`CI_COMMIT_REF_NAME` in lowercase, shortened to 63 bytes, and with everything except `0-9` and `a-z` replaced with `-`. No leading / trailing `-`. Use in URLs, host names and domain names." }, { "name": "CI_COMMIT_SHA", "description": "The commit revision the project is built for." }, { "name": "CI_COMMIT_SHORT_SHA", "description": "The first eight characters of `CI_COMMIT_SHA`." }, { "name": "CI_COMMIT_TAG", "description": "The commit tag name. Available only in pipelines for tags." }, { "name": "CI_COMMIT_TIMESTAMP", "description": "The timestamp of the commit in the ISO 8601 format." }, { "name": "CI_COMMIT_TITLE", "description": "The title of the commit. The full first line of the message." }, { "name": "CI_CONCURRENT_ID", "description": "The unique ID of build execution in a single executor." }, { "name": "CI_CONCURRENT_PROJECT_ID", "description": "The unique ID of build execution in a single executor and project." }, { "name": "CI_CONFIG_PATH", "description": "The path to the CI/CD configuration file. Defaults to `.gitlab-ci.yml`." }, { "name": "CI_DEBUG_TRACE", "description": "`true` if [debug logging (tracing)](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/README.md#debug-logging) is enabled." }, { "name": "CI_DEFAULT_BRANCH", "description": "The name of the project's default branch." }, { "name": "CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX", "description": "The image prefix for pulling images through the Dependency Proxy." }, { "name": "CI_DEPENDENCY_PROXY_PASSWORD", "description": "The password to pull images through the Dependency Proxy." }, { "name": "CI_DEPENDENCY_PROXY_SERVER", "description": "The server for logging in to the Dependency Proxy. This is equivalent to `$CI_SERVER_HOST:$CI_SERVER_PORT`." }, { "name": "CI_DEPENDENCY_PROXY_USER", "description": "The username to pull images through the Dependency Proxy." }, { "name": "CI_DEPLOY_FREEZE", "description": "Only available if the pipeline runs during a [deploy freeze window](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../../user/project/releases/index.md#prevent-unintentional-releases-by-setting-a-deploy-freeze). `true` when available." }, { "name": "CI_DEPLOY_PASSWORD", "description": "The authentication password of the [GitLab Deploy Token](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../../user/project/deploy_tokens/index.md#gitlab-deploy-token), if the project has one." }, { "name": "CI_DEPLOY_USER", "description": "The authentication username of the [GitLab Deploy Token](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../../user/project/deploy_tokens/index.md#gitlab-deploy-token), if the project has one." }, { "name": "CI_DISPOSABLE_ENVIRONMENT", "description": "Only available if 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`). `true` when available." }, { "name": "CI_ENVIRONMENT_ACTION", "description": "The action annotation specified for this job's environment. Available if [`environment:action`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#environmentaction) is set. Can be `start`, `prepare`, or `stop`." }, { "name": "CI_ENVIRONMENT_NAME", "description": "The name of the environment for this job. Available if [`environment:name`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#environmentname) is set." }, { "name": "CI_ENVIRONMENT_SLUG", "description": "The simplified version of the environment name, suitable for inclusion in DNS, URLs, Kubernetes labels, and so on. Available if [`environment:name`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#environmentname) is set. The slug is [truncated to 24 characters](https://gitlab.com/gitlab-org/gitlab/-/issues/20941)." }, { "name": "CI_ENVIRONMENT_TIER", "description": "The [deployment tier of the environment](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../environments/index.md#deployment-tier-of-environments) for this job." }, { "name": "CI_ENVIRONMENT_URL", "description": "The URL of the environment for this job. Available if [`environment:url`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#environmenturl) is set." }, { "name": "CI_EXTERNAL_PULL_REQUEST_IID", "description": "Pull request ID from GitHub." }, { "name": "CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME", "description": "The source branch name of the pull request." }, { "name": "CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_SHA", "description": "The HEAD SHA of the source branch of the pull request." }, { "name": "CI_EXTERNAL_PULL_REQUEST_SOURCE_REPOSITORY", "description": "The source repository name of the pull request." }, { "name": "CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_NAME", "description": "The target branch name of the pull request." }, { "name": "CI_EXTERNAL_PULL_REQUEST_TARGET_BRANCH_SHA", "description": "The HEAD SHA of the target branch of the pull request." }, { "name": "CI_EXTERNAL_PULL_REQUEST_TARGET_REPOSITORY", "description": "The target repository name of the pull request." }, { "name": "CI_HAS_OPEN_REQUIREMENTS", "description": "Only available if the pipeline's project has an open [requirement](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../../user/project/requirements/index.md). `true` when available." }, { "name": "CI_JOB_ID", "description": "The internal ID of the job, unique across all jobs in the GitLab instance." }, { "name": "CI_JOB_IMAGE", "description": "The name of the Docker image running the job." }, { "name": "CI_JOB_JWT", "description": "A RS256 JSON web token to authenticate with third party systems that support JWT authentication, for example [HashiCorp's Vault](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../secrets/index.md)." }, { "name": "CI_JOB_MANUAL", "description": "`true` if a job was started manually." }, { "name": "CI_JOB_NAME", "description": "The name of the job." }, { "name": "CI_JOB_STAGE", "description": "The name of the job's stage." }, { "name": "CI_JOB_STARTED_AT", "description": "The UTC datetime when a job started, in [ISO 8601](https://tools.ietf.org/html/rfc3339#appendix-A) format." }, { "name": "CI_JOB_STATUS", "description": "The status of the job as each runner stage is executed. Use with [`after_script`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#after_script). Can be `success`, `failed`, or `canceled`." }, { "name": "CI_JOB_TOKEN", "description": "A token to authenticate with [certain API endpoints](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../../api/README.md#gitlab-cicd-job-token). The token is valid as long as the job is running." }, { "name": "CI_JOB_URL", "description": "The job details URL." }, { "name": "CI_KUBERNETES_ACTIVE", "description": "Only available if the pipeline has a Kubernetes cluster available for deployments. `true` when available." }, { "name": "CI_MERGE_REQUEST_ASSIGNEES", "description": "Comma-separated list of usernames of assignees for the merge request." }, { "name": "CI_MERGE_REQUEST_DIFF_BASE_SHA", "description": "The base SHA of the merge request diff." }, { "name": "CI_MERGE_REQUEST_DIFF_ID", "description": "The version of the merge request diff." }, { "name": "CI_MERGE_REQUEST_EVENT_TYPE", "description": "The event type of the merge request. Can be `detached`, `merged_result` or `merge_train`." }, { "name": "CI_MERGE_REQUEST_ID", "description": "The instance-level ID of the merge request. This is a unique ID across all projects on GitLab." }, { "name": "CI_MERGE_REQUEST_IID", "description": "The project-level IID (internal ID) of the merge request. This ID is unique for the current project." }, { "name": "CI_MERGE_REQUEST_LABELS", "description": "Comma-separated label names of the merge request." }, { "name": "CI_MERGE_REQUEST_MILESTONE", "description": "The milestone title of the merge request." }, { "name": "CI_MERGE_REQUEST_PROJECT_ID", "description": "The ID of the project of the merge request." }, { "name": "CI_MERGE_REQUEST_PROJECT_PATH", "description": "The path of the project of the merge request. For example `namespace/awesome-project`." }, { "name": "CI_MERGE_REQUEST_PROJECT_URL", "description": "The URL of the project of the merge request. For example, `http://192.168.10.15:3000/namespace/awesome-project`." }, { "name": "CI_MERGE_REQUEST_REF_PATH", "description": "The ref path of the merge request. For example, `refs/merge-requests/1/head`." }, { "name": "CI_MERGE_REQUEST_SOURCE_BRANCH_NAME", "description": "The source branch name of the merge request." }, { "name": "CI_MERGE_REQUEST_SOURCE_BRANCH_SHA", "description": "The HEAD SHA of the source branch of the merge request. The variable is empty in merge request pipelines. The SHA is present only in [merged results pipelines](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../merge_request_pipelines/pipelines_for_merged_results/index.md). **(PREMIUM)**" }, { "name": "CI_MERGE_REQUEST_SOURCE_PROJECT_ID", "description": "The ID of the source project of the merge request." }, { "name": "CI_MERGE_REQUEST_SOURCE_PROJECT_PATH", "description": "The path of the source project of the merge request." }, { "name": "CI_MERGE_REQUEST_SOURCE_PROJECT_URL", "description": "The URL of the source project of the merge request." }, { "name": "CI_MERGE_REQUEST_TARGET_BRANCH_NAME", "description": "The target branch name of the merge request." }, { "name": "CI_MERGE_REQUEST_TARGET_BRANCH_SHA", "description": "The HEAD SHA of the target branch of the merge request. The variable is empty in merge request pipelines. The SHA is present only in [merged results pipelines](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../merge_request_pipelines/pipelines_for_merged_results/index.md). **(PREMIUM)**" }, { "name": "CI_MERGE_REQUEST_TITLE", "description": "The title of the merge request." }, { "name": "CI_NODE_INDEX", "description": "The index of the job in the job set. Only available if the job uses [`parallel`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#parallel)." }, { "name": "CI_NODE_TOTAL", "description": "The total number of instances of this job running in parallel. Set to `1` if the job does not use [`parallel`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../yaml/README.md#parallel)." }, { "name": "CI_OPEN_MERGE_REQUESTS", "description": "A comma-separated list of up to four merge requests that use the current branch and project as the merge request source. Only available in branch and merge request pipelines if the branch has an associated merge request. For example, `gitlab-org/gitlab!333,gitlab-org/gitlab-foss!11`." }, { "name": "CI_PAGES_DOMAIN", "description": "The configured domain that hosts GitLab Pages." }, { "name": "CI_PAGES_URL", "description": "The URL for a GitLab Pages site. Always a subdomain of `CI_PAGES_DOMAIN`." }, { "name": "CI_PIPELINE_CREATED_AT", "description": "The UTC datetime when the pipeline was created, in [ISO 8601](https://tools.ietf.org/html/rfc3339#appendix-A) format." }, { "name": "CI_PIPELINE_ID", "description": "The instance-level ID of the current pipeline. This ID is unique across all projects on the GitLab instance." }, { "name": "CI_PIPELINE_IID", "description": "The project-level IID (internal ID) of the current pipeline. This ID is unique only within the current project." }, { "name": "CI_PIPELINE_SOURCE", "description": "How the pipeline was triggered. Can be `push`, `web`, `schedule`, `api`, `external`, `chat`, `webide`, `merge_request_event`, `external_pull_request_event`, `parent_pipeline`, [`trigger`, or `pipeline`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../triggers/README.md#authentication-tokens)." }, { "name": "CI_PIPELINE_TRIGGERED", "description": "`true` if the job was [triggered](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../triggers/README.md)." }, { "name": "CI_PIPELINE_URL", "description": "The URL for the pipeline details." }, { "name": "CI_PROJECT_CONFIG_PATH", "description": "[Removed](https://gitlab.com/gitlab-org/gitlab/-/issues/322807) in GitLab 14.0. Use `CI_CONFIG_PATH`." }, { "name": "CI_PROJECT_DIR", "description": "The full path the repository is cloned to, and where the job runs from. If the GitLab Runner `builds_dir` parameter is set, this variable is set relative to the value of `builds_dir`. For more information, see the [Advanced GitLab Runner configuration](https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-runners-section)." }, { "name": "CI_PROJECT_ID", "description": "The ID of the current project. This ID is unique across all projects on the GitLab instance." }, { "name": "CI_PROJECT_NAME", "description": "The name of the directory for the project. For example if the project URL is `gitlab.example.com/group-name/project-1`, `CI_PROJECT_NAME` is `project-1`." }, { "name": "CI_PROJECT_NAMESPACE", "description": "The project namespace (username or group name) of the job." }, { "name": "CI_PROJECT_PATH", "description": "The project namespace with the project name included." }, { "name": "CI_PROJECT_PATH_SLUG", "description": "`$CI_PROJECT_PATH` in lowercase with characters that are not `a-z` or `0-9` replaced with `-`. Use in URLs and domain names." }, { "name": "CI_PROJECT_REPOSITORY_LANGUAGES", "description": "A comma-separated, lowercase list of the languages used in the repository. For example `ruby,javascript,html,css`." }, { "name": "CI_PROJECT_ROOT_NAMESPACE", "description": "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`." }, { "name": "CI_PROJECT_TITLE", "description": "The human-readable project name as displayed in the GitLab web interface." }, { "name": "CI_PROJECT_URL", "description": "The HTTP(S) address of the project." }, { "name": "CI_PROJECT_VISIBILITY", "description": "The project visibility. Can be `internal`, `private`, or `public`." }, { "name": "CI_REGISTRY", "description": "The address of the GitLab Container Registry. Only available if the Container Registry is enabled for the project. This variable includes a `:port` value if one is specified in the registry configuration." }, { "name": "CI_REGISTRY_IMAGE", "description": "The address of the project's Container Registry. Only available if the Container Registry is enabled for the project." }, { "name": "CI_REGISTRY_PASSWORD", "description": "The password to push containers to the project's GitLab Container Registry. Only available if the Container Registry is enabled for the project." }, { "name": "CI_REGISTRY_USER", "description": "The username to push containers to the project's GitLab Container Registry. Only available if the Container Registry is enabled for the project." }, { "name": "CI_REPOSITORY_URL", "description": "The URL to clone the Git repository." }, { "name": "CI_RUNNER_DESCRIPTION", "description": "The description of the runner." }, { "name": "CI_RUNNER_EXECUTABLE_ARCH", "description": "The OS/architecture of the GitLab Runner executable. Might not be the same as the environment of the executor." }, { "name": "CI_RUNNER_ID", "description": "The unique ID of the runner being used." }, { "name": "CI_RUNNER_REVISION", "description": "The revision of the runner running the job." }, { "name": "CI_RUNNER_SHORT_TOKEN", "description": "First eight characters of the runner's token used to authenticate new job requests. Used as the runner's unique ID." }, { "name": "CI_RUNNER_TAGS", "description": "A comma-separated list of the runner tags." }, { "name": "CI_RUNNER_VERSION", "description": "The version of the GitLab Runner running the job." }, { "name": "CI_SERVER", "description": "Available for all jobs executed in CI/CD. `yes` when available." }, { "name": "CI_SERVER_HOST", "description": "The host of the GitLab instance URL, without protocol or port. For example `gitlab.example.com`." }, { "name": "CI_SERVER_NAME", "description": "The name of CI/CD server that coordinates jobs." }, { "name": "CI_SERVER_PORT", "description": "The port of the GitLab instance URL, without host or protocol. For example `8080`." }, { "name": "CI_SERVER_PROTOCOL", "description": "The protocol of the GitLab instance URL, without host or port. For example `https`." }, { "name": "CI_SERVER_REVISION", "description": "GitLab revision that schedules jobs." }, { "name": "CI_SERVER_URL", "description": "The base URL of the GitLab instance, including protocol and port. For example `https://gitlab.example.com:8080`." }, { "name": "CI_SERVER_VERSION", "description": "The full version of the GitLab instance." }, { "name": "CI_SERVER_VERSION_MAJOR", "description": "The major version of the GitLab instance. For example, if the GitLab version is `13.6.1`, the `CI_SERVER_VERSION_MAJOR` is `13`." }, { "name": "CI_SERVER_VERSION_MINOR", "description": "The minor version of the GitLab instance. For example, if the GitLab version is `13.6.1`, the `CI_SERVER_VERSION_MINOR` is `6`." }, { "name": "CI_SERVER_VERSION_PATCH", "description": "The patch version of the GitLab instance. For example, if the GitLab version is `13.6.1`, the `CI_SERVER_VERSION_PATCH` is `1`." }, { "name": "CI_SHARED_ENVIRONMENT", "description": "Only available if the job is executed in a shared environment (something that is persisted across CI/CD invocations, like the `shell` or `ssh` executor). `true` when available." }, { "name": "GITLAB_CI", "description": "Available for all jobs executed in CI/CD. `true` when available." }, { "name": "GITLAB_FEATURES", "description": "The comma-separated list of licensed features available for the GitLab instance and license." }, { "name": "GITLAB_USER_EMAIL", "description": "The email of the user who started the job." }, { "name": "GITLAB_USER_ID", "description": "The ID of the user who started the job." }, { "name": "GITLAB_USER_LOGIN", "description": "The username of the user who started the job." }, { "name": "GITLAB_USER_NAME", "description": "The name of the user who started the job." }, { "name": "TRIGGER_PAYLOAD", "description": "The webhook payload. Only available when a pipeline is [triggered with a webhook](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/ci/variables/../triggers/README.md#using-webhook-payload-in-the-triggered-pipeline)." } ]