BambooEnvironmentInfo.

Repository Property

Summary

Gets Bamboo repository information.

Syntax

public BambooRepositoryInfo Repository { get; }

Examples

if (BuildSystem.Bamboo.IsRunningOnBamboo)
{
    Information(
        @"Repository:
        Branch: {0}
        Name: {1}
        Repository Revision: {2}
        Scm: {3}",
        BuildSystem.Bamboo.Environment.Repository.Branch,
        BuildSystem.Bamboo.Environment.Repository.Name,
        BuildSystem.Bamboo.Environment.Repository.Commit.RepositoryRevision,
        BuildSystem.Bamboo.Environment.Repository.Scm
        );
}
else
{
    Information("Not running on Bamboo");
}
if (Bamboo.IsRunningOnBamboo)
{
    Information(
        @"Repository:
        Branch: {0}
        Name: {1}
        Repository Revision: {2}
        Scm: {3}",
        Bamboo.Environment.Repository.Branch,
        Bamboo.Environment.Repository.Name,
        Bamboo.Environment.Repository.Commit.RepositoryRevision,
        Bamboo.Environment.Repository.Scm
        );
}
else
{
    Information("Not running on Bamboo");
}

Value

Type Description
BambooRepositoryInfo The Bamboo repository information.