BuildSystem.

IsRunningOnGitLabCI Property

Summary

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

Syntax

public bool IsRunningOnGitLabCI { get; }

Examples

if (BuildSystem.IsRunningOnGitLabCI)
{
    // Get the build commit hash.
    var commitHash = BuildSystem.GitLabCI.Environment.Build.Reference;
}

Value

Type Description
bool true if this instance is running on GitLab CI; otherwise, false.