...
Name | Description | Type | Usage Example | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Hostname | The Continua server hostname | String | $Server.Hostname$ | "SERVERMACHINE" | ||||||
InstallPath | The Continua server install path | String | $Server.InstallPath$ | "C:\Program Files\VSoft Technologies\ContinuaCI\" | ||||||
Now | The current date and time given as local to the server | DateTime | $Server.Now$ | "01/01/2014 5:03:18 PM" | ||||||
NowUtc | The date and time given as UTC | DateTime | $Server.NowUtc$ | "01/01/2014 7:04:01 AM | "Hostname | The Continua server hostname | String | $Server.Hostname$ | "SERVERMACHINE" | InstallPath|
The Continua server install path | String | $Server.InstallPath$ | "C:\Program Files\VSoft Technologies\ContinuaCI\" | Url | The web service URL | String | $Server.Url$ | "http:\\SERVERNAME:8080" |
...
Name | Description | Type | Usage Example | |
---|---|---|---|---|
GetBoolean | ||||
GetDate | ||||
GetDateTime | ||||
GetNumber | ||||
GetString | ||||
NewGuid | Create a new randomly generated GUID | Guid | $Utils.NewGuid$ | "da47b2d6-3580-48ed-b27a-f152da2345e6" |
RandomNumber | Generate a new random integer value If one parameter is provided it designates a random number in the range of greater than or equal to zero and the number provided will be generated If two parameters are provided they designate the range for the generated number. If no parameters are provided a 32-bit integer greater than or equal to zero and less than Int32 max value (2,147,483,647) will be generated. | Integer | $Utils.RandomNumber("1", "10")$ $Utils.RandomNumber("10")$ $Utils.RandomNumber$ | 5 2 1906529119 |
...
Date Properties and Functions
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Day | string array | ||||
DayOfWeek | |||||
DaysAgo | |||||
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") | |
Month | |||||
ToLongDateString | |||||
ToShortDateString | |||||
Year | |||||
DateTime Properties and Functions
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") | |
Hour | |||||
HoursAgo | |||||
Millisecond | |||||
Minute | |||||
MinutesAgo | |||||
Second | |||||
SecondsAgo | |||||
ToLongTimeString | |||||
ToShortTimeString | |||||
Year | |||||
TimeSpan Properties and Functions
Name | Description | Parameters | Return Type | Usage Examples | |
---|---|---|---|---|---|
Format | Formats a date or time value using standard or custom .Net formatting strings | String | $Server.Now.Format("hh:mm")$ | "23:55" (given the date time "31/12/2000 23:55:333") | |
FullAbreviatedText | |||||
Hours | |||||
LongText | |||||
Milliseconds | |||||
Minutes | |||||
Seconds | |||||
ShortAbbreviatedText | |||||
ShortText | |||||
ShortTextPadding | |||||
Text | |||||
TotalHours | |||||
TotalMilliseconds | |||||
TotalMinutes | |||||
TotalSeconds | |||||