BuildSystem.

IsRunningOnBitbucketPipelines Property

Summary

Gets a value indicating whether this instance is running on Bitbucket Pipelines.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public bool IsRunningOnBitbucketPipelines { get; }

Examples

if (BuildSystem.IsRunningOnBitbucketPipelines)
{
    // Get the build commit hash.
    var commitHash = BuildSystem.BitbucketPipelines.Environment.Repository.Commit;
}

Value

Type Description
bool true if this instance is running on Bitbucket Pipelines; otherwise, false.