Skip to content

Update environment variables that are in server #9348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions jekyll/_cci2/variables.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ This page is a reference for all built-in values available for use in your Circl
[#built-in-environment-variables]
== Built-in environment variables

The following built-in environment variables are available for CircleCI projects. A few environment variables are available for GitHub OAuth and Bitbucket Cloud projects that have been deprecated for GitLab, GitHub App and Bitbucket Data Center support. If you must continue to use those as environment variables in your GitLab pipelines, refer to the workaround described after the list below.
The following built-in environment variables are available for CircleCI projects. Some environment variables are available for GitHub OAuth and Bitbucket Cloud projects that have been deprecated for GitLab, GitHub App and Bitbucket Data Center support. If you must continue to use those as environment variables in your GitLab pipelines, refer to the workaround described after the list below.

Environment variables are scoped at the job level. They can be used within the context of a job but do not exist at a pipeline level, therefore they cannot be used for any logic at the pipeline or workflow level.
Environment variables are scoped at the job level and can be used within the context of a job. Environment variables do not exist at a pipeline level, therefore they cannot be used for any logic at the pipeline or workflow level.

NOTE: You cannot use a built-in environment variable to define another environment variable. Instead, you must use a `run` step to export the new environment variables using `BASH_ENV`. For more details, see xref:set-environment-variable#set-an-environment-variable-in-a-shell-command[Setting an Environment Variable in a Shell Command].

Expand Down Expand Up @@ -93,28 +93,28 @@ NOTE: You cannot use a built-in environment variable to define another environme
| String
| An OpenID Connect token signed by CircleCI which includes details about the current job.
| icon:check[]
| icon:times[]
| icon:check[] from v4.4

| `CIRCLE_OIDC_TOKEN_V2`
| GitHub, Bitbucket, GitLab
| String
| An OpenID Connect token signed by CircleCI which includes details about the current job.
| icon:check[]
| icon:times[]
| icon:check[] from v4.4

| `CIRCLE_ORGANIZATION_ID`
| GitHub, Bitbucket, GitLab
| String
| A unique identifier for the CircleCI organization.
| icon:check[]
| icon:times[]
| icon:check[]

| `CIRCLE_PIPELINE_ID`
| GitHub, Bitbucket, GitLab
| String
| A unique identifier for the current pipeline.
| icon:check[]
| icon:times[]
| icon:check[]

| `CIRCLE_PR_NUMBER`
| GitHub OAuth, Bitbucket Cloud
Expand All @@ -140,7 +140,7 @@ NOTE: You cannot use a built-in environment variable to define another environme
| `CIRCLE_PREVIOUS_BUILD_NUM`
| GitHub, Bitbucket, GitLab
| Integer
| The largest job number in a given branch that is less than the current job number. **Note**: The variable is not always set, and is not deterministic. It is also not set on runner executors. This variable is likely to be deprecated, and CircleCI recommends users to avoid using it.
| The largest job number in a given branch that is less than the current job number. **Note**: The variable is not always set, and is not deterministic. It is also not set on runner executors. This variable will be deprecated and is not recommended for use.
| icon:check[]
| icon:check[]

Expand All @@ -149,7 +149,7 @@ NOTE: You cannot use a built-in environment variable to define another environme
| String
| A unique identifier for the current project.
| icon:check[]
| icon:times[]
| icon:check[]

| `CIRCLE_PROJECT_REPONAME`
| GitHub, GitLab, Bitbucket
Expand Down