...
Build-specific variable | Description | Availablity |
---|---|---|
bamboo.buildKey | The job key for the current job, in the form PROJECT-PLAN-JOB, e.g. | ⛔ This is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.planKey | The key of the current plan, in the form PROJECT-PLAN, e.g. |
|
bamboo.shortPlanKey | The short key of the current plan (without project part), e.g. |
|
bamboo.shortJobKey | The short key of the current job (without project and plan parts), e.g. | ⛔ This is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.buildResultKey | The result key when this job executes, in the form PROJECT-PLAN-JOB-BUILD e.g. | ⛔ This is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.buildResultsUrl or bamboo.resultsUrl | The URL of the result in Bamboo once the job has finished executing. | ⛔ This URL is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.buildNumber | The Bamboo build number, e.g. | ⛔ Not available for plan trigger |
bamboo.buildPlanName | The Bamboo job name e.g. | ⛔ This is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.planName | The current plan's name e.g. |
|
bamboo.shortPlanName | The current plan's name without project part, e.g. |
|
bamboo.shortJobName | The current job's name without project and plan parts, e.g. | ⛔ This is related to a job. There may be more than one job hence it’s not meaningful for our deployment trigger to provide such variable and too early for our plan trigger. |
bamboo.buildTimeStamp | The time when build was started in ISO 8601 format e.g. | ⛔ This information is not available because it’s too early for our plan trigger. Available in deployment trigger |
bamboo.agentId | The ID of the agent that the deployment is executed on. | ⛔ Not available for plan trigger and not meaningful for deployment trigger (In deployment trigger we could know the agent(s) that run the jobs). |
bamboo.agentWorkingDirectory | The path to the working directory on the agent, for example The agent working directory is not the same as the build working directory described below. | ⛔ Not available for plan trigger and not meaningful for deployment trigger (In deployment trigger we could know the agent(s) that run the jobs). There are separate working directories for each agent. |
bamboo.build.working.directory | The working directory on which the build is being executed, for example | ⛔ Not available for plan trigger and not meaningful for deployment trigger. There are separate working directories for each job. |
bamboo.ManualBuildTriggerReason.userName | The user who triggered the manual build. | ⛔ Not available for plan trigger for deployment trigger |
Generic repository variables | ||
bamboo.planRepository.<position>.branchName | The name of the branch in the repository (depends on availability from the VCS used) e.g. | |
bamboo.planRepository.<position>.name | The name of of the repository, as shown in the repository for the plan e.g. Mercurial | |
bamboo.planRepository.<position>.revision | The revision use to build this release. Format depends on the VCS used. | |
bamboo.planRepository.<position>.previousRevision | The previous revision number (this might not exist, for example for the initial build). | |
bamboo.planRepository.<position>.type | The type of the repository, as defined by a repository plugin e.g. hg, svn, git | |
bamboo.repository.pr.key | Pull request key if plan branch was created from pull request | |
bamboo.repository.pr.sourceBranch | Pull request source branch name if plan branch was created from pull request | |
bamboo.repository.pr.targetBranch | Pull request destination branch name if plan branch was created from pull request | |
Subversion | ||
bamboo.planRepository.<position>.username | User name, used for repository authentication. | |
bamboo.planRepository.<position>.repositoryUrl | The repository URL. | |
CVS | ||
bamboo.planRepository.<position>.last.update.time | The last updated timestamp. | |
bamboo.planRepository.<position>.last.update.time.label | The last updated timestamp to be used as a label for post build result labeling. The spaces in the cvs version string are replaced with '_'. | |
Perforce | ||
bamboo.planRepository.<position>.revision.number | The change set number. | |
bamboo.planRepository.<position>.username | User name, used for repository authentication. | |
bamboo.planRepository.<position>.port | Port used for repository communication. | |
bamboo.planRepository.<position>.client | Client used for repository communication. | |
Git | ||
bamboo.planRepository.<position>.branch | The branch | |
bamboo.planRepository.<position>.repositoryUrl | The repository URL | |
Mercurial | ||
bamboo.planRepository.<position>.repositoryUrl | The repository URL | |
bamboo.planRepository.<position>.branch | The branch | |
bamboo.planRepository.<position>.username | User name, used for repository authentication. |
...
Releases variables
Variable | Description | Availability |
---|---|---|
bamboo.buildNumber | The build result from which the release is created. | ⛔ Not available for plan trigger |
bamboo.buildResultKey | The key of the build result from which the release is created e.g. KUNG-FOO-35 | ⛔ Not available for plan trigger |
bamboo.planKey | The key of the plan related to the release e.g. KUNG-FOO | Available for plan trigger |
bamboo.planName | The name of the plan related to the release e.g. Kung - Foo | Available for plan trigger |
bamboo.shortPlanKey | The short key of the plan related to the release (without project part), e.g. | Available for plan trigger |
bamboo.shortPlanName | The plan's name without project part, e.g. | Available for plan trigger |
System variables
The usage format for all system variables is:
...