Summary
Gets Azure Pipelines pull request information.
- Namespace
- Cake
.Common .Build .AzurePipelines .Data - Containing Type
- Azure
Pipelines Environment Info
Syntax
public AzurePipelinesPullRequestInfo PullRequest { get; }
Examples
if (BuildSystem.AzurePipelines.IsRunningOnAzurePipelines)
{
Information(
@"PullRequest:
IsPullRequest: {0}
Id: {1}
Number: {2}",
BuildSystem.AzurePipelines.Environment.PullRequest.IsPullRequest,
BuildSystem.AzurePipelines.Environment.PullRequest.Id,
BuildSystem.AzurePipelines.Environment.PullRequest.Number
);
}
else
{
Information("Not running on Azure Pipelines");
}
if (AzurePipelines.IsRunningOnAzurePipelines)
{
Information(
@"PullRequest:
IsPullRequest: {0}
Id: {1}
Number: {2}",
AzurePipelines.Environment.PullRequest.IsPullRequest,
AzurePipelines.Environment.PullRequest.Id,
AzurePipelines.Environment.PullRequest.Number
);
}
else
{
Information("Not running on Azure Pipelines");
}
Value
Type | Description |
---|---|
Azure |
The Azure Pipelines pull request information. |