BambooEnvironmentInfo.

Plan Property

Summary

Gets Bamboo plan information.

Syntax

public BambooPlanInfo Plan { get; }

Examples

if (BuildSystem.Bamboo.IsRunningOnBamboo)
{
    Information(
        @"Build:
        Plan Name: {0}
        Short Plan Name: {1}
        Plan Key: {2}
        Short Plan Key: {3}
        Short Job Key: {4}
        Short Job Name: {5}",
        BuildSystem.Bamboo.Environment.Plan.PlanName,
        BuildSystem.Bamboo.Environment.Plan.ShortPlanName,
        BuildSystem.Bamboo.Environment.Plan.PlanKey,
        BuildSystem.Bamboo.Environment.Plan.ShortPlanKey,
        BuildSystem.Bamboo.Environment.Plan.ShortJobKey,
        BuildSystem.Bamboo.Environment.Plan.ShortJobName
        );
}
else
{
    Information("Not running on Bamboo");
}
if (Bamboo.IsRunningOnBamboo)
{
    Information(
        @"Build:
        Plan Name: {0}
        Short Plan Name: {1}
        Plan Key: {2}
        Short Plan Key: {3}
        Short Job Key: {4}
        Short Job Name: {5}",
        Bamboo.Environment.Plan.PlanName,
        Bamboo.Environment.Plan.ShortPlanName,
        Bamboo.Environment.Plan.PlanKey,
        Bamboo.Environment.Plan.ShortPlanKey,
        Bamboo.Environment.Plan.ShortJobKey,
        Bamboo.Environment.Plan.ShortJobName
        );
}
else
{
    Information("Not running on Bamboo");
}

Value

Type Description
BambooPlanInfo The Bamboo plan information.