Summary
Set a Continua CI build variable.
Syntax
public void SetVariable(string name, string value, bool skipIfNotDefined = true)
Examples
if (BuildSystem.ContinuaCI.IsRunningOnContinuaCI)
{
BuildSystem.ContinuaCI.SetVariable("MyVar", "value");
}
Parameters
| Name |
Type |
Description |
| name |
string |
Name of the variable to set. |
| value |
string |
Value to assign to the variable. |
| skipIfNotDefined |
bool |
Set to 'true' to prevent the build failing if the variable has not been defined for the configuration. |
Return Value