Predefined environment variables
SourceCraft automatically sets values for some environment variables. You can use them in your CI/CD processes.
Variable |
Description |
|
Means that the task is running in a CI environment, which is always |
|
Means that the task is running in a SourceCraft CI/CD environment, which is always |
|
Path to the directory with files associated with the task in progress. |
|
Path to the directory to clone the repository to. This directory is also the default directory ( |
|
Path to the directory housing auxiliary files of the task in progress. |
|
Full name of the branch or tag ( |
|
Name of the branch or tag ( |
|
SHA hash of the commit after which the workflow started. |
|
First 8 characters of |
|
SHA hash of the commit for which the list of changes is calculated. The values it takes depend on the event that prompted the workflow execution:
|
|
Name of the target branch of the pull request (the branch you plan to edit), e.g., |
|
Type of the trigger event that prompted the workflow execution:
|
|
Indicates whether or not to clone the repository automatically. It equals the |
|
Name of the workflow in progress. |
|
Name of the task in progress. |
|
Name of the cube in progress. |
|
Docker image used by the cube. It is only defined for cubes which use a container. |
|
List of paths to cube artifacts relative to |
|
Commit author, in |
|
Committer who added the commit to the target branch, in |
|
Commit timestamp in ISO 8601 format, e.g., |
|
Commit message. |
|
Commit title, i.e., the first line of the message. |
|
Commit description. If the title is less than 100 characters, the message is displayed without a title; otherwise, the entire message is displayed. |
|
The variable that provides environment variables from a certain cube to others as
All cubes to execute after |