Variable

Predefined variables in GitLab CI.

Read more in the GitLab documentation.

Types

Link copied to clipboard
object Chat

Variables related to ChatOps.

Link copied to clipboard
object Commit

Variables related to commits.

Link copied to clipboard

The container dependency proxy allows to cache containers in GitLab to avoid Docker Hub's rate limits.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Job
Link copied to clipboard
Link copied to clipboard
object Pages
Link copied to clipboard
object Parallel
Link copied to clipboard
object Pipeline
Link copied to clipboard
object Project
Link copied to clipboard
object Registry
Link copied to clipboard
object Runner
Link copied to clipboard
object Server
Link copied to clipboard
object User

Properties

Link copied to clipboard
const val active: String

true for all jobs executed in CI.

Link copied to clipboard
const val apiV4URL: String

The GitLab API v4 URL.

Link copied to clipboard
const val buildDir: String

Top-level directory in which builds are executed.

Link copied to clipboard
const val concurrentId: String

The unique ID of build execution in a single executor.

Link copied to clipboard

The unique ID of build execution in a single executor and project.

Link copied to clipboard
const val configPath: String

The path to the CI/CD configuration file.

Link copied to clipboard
const val debugTrace: String

true if debug logging is enabled.

Link copied to clipboard

The project's default branch.

Link copied to clipboard
const val deployFreeze: String

Only available if the pipeline runs during a deploy freeze window.

Link copied to clipboard
const val disposable: String

Only available if the job is executed in a disposable environment (something that is created only for this job and will be destroyed after the execution, all executors except shell and ssh).

Link copied to clipboard
const val features: String
Link copied to clipboard
const val fipsMode: String

Whether FIPS mode is enabled in the GitLab instance.

Link copied to clipboard

Only available if the pipeline's project has an open requirement.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val shared: String
Link copied to clipboard