TravisCIEnvironmentInfo.

Build Property

Summary

Gets Travis CI build information for the current build.

Syntax

public TravisCIBuildInfo Build { get; }

Examples

if (BuildSystem.TravisCI.IsRunningOnTravisCI)
{
    Information(
        @"Build:
        Branch: {0}
        BuildDirectory: {1}
        BuildId: {2}",
        BuildSystem.TravisCI.Environment.Build.Branch,
        BuildSystem.TravisCI.Environment.Build.BuildDirectory,
        BuildSystem.TravisCI.Environment.Build.BuildId
        );
}
else
{
    Information("Not running on TravisCI");
}
if (TravisCI.IsRunningOnTravisCI)
{
    Information(
        @"Build:
        Branch: {0}
        BuildDirectory: {1}
        BuildId: {2}",
        TravisCI.Environment.Build.Branch,
        TravisCI.Environment.Build.BuildDirectory,
        TravisCI.Environment.Build.BuildId
        );
}
else
{
    Information("Not running on TravisCI");
}

Value

Type Description
TravisCIBuildInfo The build.