Out of the box support
The ContinuaCI alias, which returns an IContinuaCIProvider instance can be used to interact with the Continua CI environment.
The following example writes an error message if running on Continua CI:
if (BuildSystem.ContinuaCI.IsRunningOnContinuaCI)
{
BuildSystem.ContinuaCI.WriteMessage(
"This is a error message.",
ContinuaCIMessageType.Error
);
}
else
{
Information("Not running on Continua CI");
}
See IContinuaCIProvider for details and available methods to interact with Continua CI.
Available 3rd party extensions
No extensions found