ContinuaCIEnvironmentInfo.

Build Property

Summary

Gets Continua CI build information.

Syntax

public ContinuaCIBuildInfo Build { get; }

Examples

if (BuildSystem.ContinuaCI.IsRunningOnContinuaCI)
{
    Information(
        @"Build:
        Id: {0}
        Version: {1}
        Started By: {2}
        Is Feature Branch Build: {3}
        Build Number: {4}
        Started: {5}",
        BuildSystem.ContinuaCI.Environment.Build.Id,
        BuildSystem.ContinuaCI.Environment.Build.Version,
        BuildSystem.ContinuaCI.Environment.Build.StartedBy,
        BuildSystem.ContinuaCI.Environment.Build.IsFeatureBranchBuild,
        BuildSystem.ContinuaCI.Environment.Build.BuildNumber,
        BuildSystem.ContinuaCI.Environment.Build.Started
        );
}
else
{
    Information("Not running on ContinuaCI");
}
if (ContinuaCI.IsRunningOnContinuaCI)
{
    Information(
        @"Build:
        Id: {0}
        Version: {1}
        Started By: {2}
        Is Feature Branch Build: {3}
        Build Number: {4}
        Started: {5}",
        ContinuaCI.Environment.Build.Id,
        ContinuaCI.Environment.Build.Version,
        ContinuaCI.Environment.Build.StartedBy,
        ContinuaCI.Environment.Build.IsFeatureBranchBuild,
        ContinuaCI.Environment.Build.BuildNumber,
        ContinuaCI.Environment.Build.Started
        );
}
else
{
    Information("Not running on ContinuaCI");
}

Value

Type Description
ContinuaCIBuildInfo The Continua CI build information.