...
Name | Description | Type | Usage Example | ||||||
---|---|---|---|---|---|---|---|---|---|
IdBuildNumber | A unique Integer allocated automatically to this build | String | $Build.Id$ | "10" | |||||
Version | A reference object for the build version (as defined below). | Version | $Build.Version$ | N/A | |||||
zero-based auto-incremented integer allocated to this build (the first build will be build 0, the second build 1, etc) | Integer | $Build.BuildNumber$ | 100 | ||||||
Duration | |||||||||
FirstSharedResourceLabel | |||||||||
HasErroredStages | |||||||||
HasFailedStages | |||||||||
HasNewChanges | Does this build contain changesets which have not been associated with a previous build? | Boolean | $Build.HasNewChanges$ | true | |||||
HasSuccessfulStages | |||||||||
HasWarnings | |||||||||
Id | A unique Integer allocated automatically to this | StartedBy | The username of the user who initiated thebuild | String | $Build.StartedBy$Id$ | "peter.toms@finalbuilder.com10" | |||
IsFeatureBranchBuild | Utilised via build triggers. This expression is set to true when a build is triggered on a non-default branch | Boolean | $Build.IsFeatureBranchBuild$ | true | |||||
LastSharedResourceLabel | |||||||||
LinkUrl | Build details URL | String | $Build.LinkUrl$ | "http:\\SERVERNAME\New_Project_1\ci\builds\view\123" | BuildNumber | A zero-based auto-incremented integer allocated to this build (the first build will be build 0, the second build 1, etc) | Integer | $Build.BuildNumber$ | 100|
Metrics | A reference object to the metrics associated with this build (as defined below). | Metrics | $Build.Metrics$ | N/A | |||||
HasNewChanges | Does this build contain changesets which have not been associated with a previous build? | Boolean | $Build.HasNewChanges$ | true | |||||
SharedResourceLabels | |||||||||
SharedResources | |||||||||
StartComment | |||||||||
StartedBy | The username of the user who initiated the build | String | $Build.StartedBy$ | "peter.toms@finalbuilder.com" | |||||
Version | A reference object for the build version (as defined below). | Version | $Build.Version$ | N/A | LinkUrl | Build details URL | String | $Build.LinkUrl$ | "http:\\SERVERNAME\New_Project_1\ci\builds\view\123" |
Anchor | ||||
---|---|---|---|---|
|
Name | Description | Type | Usage Examples | ||
---|---|---|---|---|---|
Description | |||||
InitialisingBuildCount | The number of currently initialising builds | Integer | $Configuration.InitialisingBuilds$ | 1 | |
InitialisingOrQueuedBuildCount | |||||
LastBuild | |||||
LastFinishedBuild | |||||
Name | Name of the configuration (as defined within the Configuration details page) | String | $Configuration.Name$ | "New Configuration 1" | |
RunningBuilds | The number of currently running builds | Integer | $Configuration.RunningBuilds$ | 1 | |
PendingPromotionBuildCount | |||||
QueuedBuildCount | QueuedBuilds | The number of currently queued builds | Integer | $Configuration.QueuedBuilds$ | 1 |
InitialisingBuildsRunningBuildCount | The number of currently initialising running builds | Integer | $Configuration.InitialisingBuilds$RunningBuilds$ | 1 |
Anchor | ||||
---|---|---|---|---|
|
Name | Description | Type | Usage Example | |
---|---|---|---|---|
Port | The port number used for agent communication | String | $Agent.Port$ | "9000" |
Hostname | The agents host name | String | $Agent.Hostname$ | "AGENTMACHINE" |
Now | The current date and time given as local to the agent | DateTime | $Agent.Now$ | "2014 4:51:44 PM" |
NowUTC | The current date and time given as UTC | DateTime | $Agent.NowUtc$ | "2014 6:52:25 AM" |
InstallPath | The installation path of the agent | String | $Agent.InstallPath$ | "C:\Program Files\VSoft Technologies\ContinuaCIAgent\" |
GetUserEnvironmentVariable | Gets the specified Windows user environment variable (relative to the agent machine's service user, and relative to the agent machine) | String | $Agent.GetUserEnvironmentVariable("TEMP")$ | "%USERPROFILE%\AppData\Local\Temp" |
GetMachineEnvironmentVariable | Gets the specified Windows machine environment variable (relative to the agent machine) | String | $Agent.GetMachineEnvironmentVariable("NUMBER_OF_PROCESSORS")$ | "8" |
N/A | Within the Agent object is a list of the current agent property collectors | Property Collector | $Agent.NuGet.Default.Path$ | "C:\Program Files\NuGet\NuGet.exe" |
...