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