BuildSystem.

GitLabCI Property

Summary

Gets the GitLab CI Provider.
Namespace
Cake.Common.Build
Containing Type
BuildSystem

Syntax

public IGitLabCIProvider GitLabCI { get; }

Examples

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

Value

Type Description
IGitLabCIProvider