GitLabAliases.

GitLabTryGetCurrentProjectIdentity(ICakeContext) Method

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
NullableContextAttribute
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

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.

See Also