Summary
Gets TeamCity pull-request information.
- Namespace
- Cake
.Common .Build .TeamCity .Data - Containing Type
- Team
City Environment Info
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 |
---|---|
Team |
The TeamCity pull-request information. |