Managing Environment Variables
Creating Environment Variables
You can create up to 200 environment variables per platform, project, and pipeline. Once you reach this limit, the create button becomes unavailable, preventing you from creating new environment variables. |
-
Choose whether you want to create a global, project, or pipeline environment variable:
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created.
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library.
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu.
Your project’s pipeline library opens. -
Click a pipeline.
The pipeline opens on itsOverview page.
-
-
Click
Environment variables from the secondary navigation menu.
The page opens with the list of existing environment variable. -
Click Create variable to create a new environment variables.
A panel opens that you can edit. -
Enter the required information.
-
Environment variable names is mandatory. It has to start with a letter and can be up to 128 characters, including alphanumeric characters (a-z) (A-Z) (0-9) and underscores (_).
-
The environment variable value can be up to 2,048 characters.
⇒ Existing environment variables that do not follow these rules are flagged as errors.
-
The description is optional and have no restrictions, but it is a good practice to add it and keep it short and informative.
-
You can select the option is password if your value is a password and must be hidden.
-
-
Click Save to confirm the creation.
The created environment variable appears in the list of the corresponding scope, that is, either in the global, project, or pipeline Environment variables page.
To delete environment variables, click the variable you want to delete.
In the right-hand panel that opens, scroll to the bottom and click |
Editing Environment Variables
-
Choose whether you want to modify a global, project, or pipeline environment variable:
-
Click the
Projects module from the primary navigation menu.
Your project library opens and lists the projects you have created.
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library.
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu.
Your project’s pipeline library opens. -
Click a pipeline.
The pipeline opens on itsOverview page.
-
-
Click
Environment variables from the secondary navigation menu.
The page opens with the list of existing environment variable. -
Click the variable you want to change in the list.
A panel opens that you can edit. -
Change the information as needed.
-
Environment variable names is mandatory. It has to start with a letter and can be up to 128 characters, including alphanumeric characters (a-z) (A-Z) (0-9) and underscores (_).
-
The environment variable value can be up to 2,048 characters.
⇒ Existing environment variables that do not follow these rules are flagged as errors.
-
The description is optional and have no restrictions, but it is a good practice to add it and keep it short and informative.
-
You can select the option is password if your value is a password and must be hidden.
-
-
Click Save to save your changes.
Overriding Environment Variables
-
Navigate to:
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library.
-
Click
Projects from the primary navigation menu.
Your project library opens and lists the projects you have created. -
Click a project.
The project opens on its job library. -
Click
Pipelines from the secondary navigation menu.
Your project’s pipeline library opens. -
Click a pipeline.
The pipeline opens on itsOverview page.
-
-
Click
Environment variables from the secondary navigation menu.
The page opens with the list of existing environment variables. -
Click the variable you want to override in the list.
A panel opens that you can edit. -
At the bottom of the panel, click Override in this project/pipeline.
-
Enter the required information for the corresponding scope.
-
Click Save to save your changes.
The overridden environment variable still exists at the top level and is still applied, except in the current project or pipeline, where it will be applied with the new value.