This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.GitLab.
Summary
Attempts to determine the
ProjectIdentity
from environment variables.
- Assembly
- Cake
.GitLab .dll - Namespace
- Cake
.GitLab - Containing Type
- GitLabAliases
Syntax
public static ProjectIdentity GitLabTryGetCurrentProjectIdentity(this ICakeContext context)
Remarks
This alias attempts to determine the current
ProjectIdentity
from the environment variables set by GitLab CI.
Thus, this alias will only work if the build is running inside a GitLab CI pipeline.
Attributes
Type | Description |
---|---|
Nullable |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The current context |
Return Value
Type | Description |
---|---|
ProjectIdentity | Returns a ProjectIdentity if it could be determined or null if the identity could not be determined. |