Out of the box support
The BitbucketPipelines alias, which returns an IBitbucketPipelinesProvider instance can be used to interact with the Atlassian Bitbucket Pipelines environment.
The following example writes pull request ID if running on Atlassian Bitbucket Pipelines:
if (BuildSystem.BitbucketPipelines.IsRunningOnBitbucketPipelines)
{
Information(BuildSystem.BitbucketPipelines.Environment.PullRequest.Id);
}
else
{
Information("Not running on Atlassian Bitbucket Pipelines");
}
See IBitbucketPipelinesProvider for details and available methods to interact with Atlassian Bitbucket Pipelines.
Available 3rd party extensions
No extensions found