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" |