Summary
Gets a value indicating whether the current build is running on GitLab CI.
- Namespace
- Cake
.Common .Build .GitLabCI - Containing Type
- IGitLabCIProvider
Syntax
bool IsRunningOnGitLabCI { get; }
Examples
if (BuildSystem.GitLabCI.IsRunningOnGitLabCI)
{
Information("Running on GitLab CI");
}
else
{
Information("Not running on GitLab CI");
}
if (GitLabCI.IsRunningOnGitLabCI)
{
Information("Running on GitLab CI");
}
else
{
Information("Not running on GitLab CI");
}
Value
| Type | Description |
|---|---|
| bool |
true if the current build is running on GitLab CI; otherwise, false.
|
