You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The agent object $Agent provides access to the properties of the current agent


NameDescriptionTypeUsage Example
PortThe port number used for agent communicationString$Agent.Port$"9000"
HostnameThe agents host nameString$Agent.Hostname$"AGENTMACHINE"
NowThe current date and time given as local to the agentDateTime$Agent.Now$"2014 4:51:44 PM"
NowUTCThe current date and time given as UTCDateTime$Agent.NowUtc$"2014 6:52:25 AM"
InstallPathThe installation path of the agentString$Agent.InstallPath$"C:\Program Files\VSoft Technologies\ContinuaCIAgent\"
GetUserEnvironmentVariableGets 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"
GetMachineEnvironmentVariableGets the specified Windows machine environment variable (relative to the agent machine) String$Agent.GetMachineEnvironmentVariable("NUMBER_OF_PROCESSORS")$"8"
N/AWithin the Agent object is a list of the current agent property collectorsProperty Collector$Agent.NuGet.Default.Path$"C:\Program Files\NuGet\NuGet.exe"

  • No labels