Contains standard environment variables and pipeline variables that CircleCI injects into your job
Environment variables
(Boolean) true (represents whether the current environment is a CI environment) |
|
(Boolean) true (represents whether the current environment is a CircleCI environment) |
|
(String) The name of the Git branch currently being built. |
|
(Integer) The number of the current job. Job numbers are unique for each job. |
|
(String) The URL for the current job on CircleCI. |
|
(String) The name of the current job. |
|
(Integer) For jobs that run with parallelism enabled, this is the index of the current parallel run. The value ranges from 0 to (CIRCLENODETOTAL - 1). |
|
(Integer) For jobs that run with parallelism enabled, this is the number of parallel runs. This is equivalent to the value of parallelism in your config file.. |
|
(Integer) The number of the associated GitHub or Bitbucket pull request. Only available on forked PRs. |
|
(String) The name of the GitHub or Bitbucket repository where the pull request was created. Only available on forked PRs. |
|
(String) The GitHub or Bitbucket username of the user who created the pull request. Only available on forked PRs. |
|
(String) The number of previous builds on the current branch. |
|
(String) The name of the repository of the current project. |
|
(String) The GitHub or Bitbucket username of the current project. |
|
(String) The URL of the associated pull request. If there are multiple associated pull requests, one URL is randomly chosen. |
|
(List) Comma-separated list of URLs of the current build’s associated pull requests. |
|
(String) The URL of your GitHub or Bitbucket repository. |
|
(String) The SHA1 hash of the last commit of the current build. |
|
(String) The name of the git tag, if the current build is tagged. |
|
(String) The GitHub or Bitbucket username of the user who triggered the pipeline (only if the user has a CircleCI account). |
|
(String) A unique identifier for the workflow instance of the current job. This identifier is the same for every job in a given workflow instance. |
|
(String) An identifier for the workspace of the current job. This identifier is the same for every job in a given workflow. |
|
(String) The value of the working_directory key of the current job. |
Pipeline Variables
(String) A globally unique id representing for the pipeline. |
|
(Integer) A project unique integer id for the pipeline. |
|
(String) The URL where the current project is hosted. For example, https://github.com/circleci/circleci-docs. |
|
(String) The lower-case name of the VCS provider, E.g. “github”, “bitbucket”. |
|
(String) The name of the git tag that was pushed to trigger the pipeline. If the pipeline was not triggered by a tag, then this is the empty string. |
|
(Integer) The name of the git branch that was pushed to trigger the pipeline. |
|
(Integer) The long (40-character) git SHA that is being built. |
|
(String) The long (40-character) git SHA of the build prior to the one being built. Note: While in most cases pipeline.git.base_revision will be the SHA of the pipeline that ran before your currently running pipeline, there are some caveats. When the build is the first build for a branch, the variable will not be present. In addition, if the build was triggered via the API, the variable will not be present. |
|
(Boolean) True if the pipeline is in the setup phase, i.e. running a setup workflow. |
|
(String) The source that triggers the pipeline, current values are webhook, api, scheduled_pipeline. |
|
(String) The name of the schedule if it is a scheduled pipeline. Value will be empty string if the pipeline is triggered by other sources. |
|
(String) The unique id of the schedule if it is a scheduled pipeline. Value will be empty string if the pipeline is triggered by other sources. |