GitLabCIEnvironmentInfo.

Runner Property

Summary

Gets the GitLab CI runner information.

Syntax

public GitLabCIRunnerInfo Runner { get; }

Examples

if (BuildSystem.GitLabCI.IsRunningOnGitLabCI)
{
    Information(
        @"Runner:
        Id: {0}
        Description: {1}
        Tags: {2}",
        BuildSystem.GitLabCI.Environment.Runner.Id,
        BuildSystem.GitLabCI.Environment.Runner.Description,
        BuildSystem.GitLabCI.Environment.Runner.Tags
        );
}
else
{
    Information("Not running on GitLabCI");
}
if (GitLabCI.IsRunningOnGitLabCI)
{
    Information(
        @"Runner:
        Id: {0}
        Description: {1}
        Tags: {2}",
        GitLabCI.Environment.Runner.Id,
        GitLabCI.Environment.Runner.Description,
        GitLabCI.Environment.Runner.Tags
        );
}
else
{
    Information("Not running on GitLabCI");
}

Value

Type Description
GitLabCIRunnerInfo The GitLab CI runner information.