TeamCityEnvironmentInfo.

PullRequest Property

Summary

Gets TeamCity pull-request information.

Syntax

public TeamCityPullRequestInfo PullRequest { get; }

Examples

if (BuildSystem.TeamCity.IsRunningOnTeamCity)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Number: {1}",
        BuildSystem.TeamCity.Environment.PullRequest.IsPullRequest,
        BuildSystem.TeamCity.Environment.PullRequest.Number
        );
}
else
{
    Information("Not running on TeamCity");
}
if (TeamCity.IsRunningOnTeamCity)
{
    Information(
        @"PullRequest:
        IsPullRequest: {0}
        Number: {1}",
        TeamCity.Environment.PullRequest.IsPullRequest,
        TeamCity.Environment.PullRequest.Number
        );
}
else
{
    Information("Not running on TeamCity");
}

Value

Type Description
TeamCityPullRequestInfo The TeamCity pull-request information.