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.AzureDevOps.
Summary
Gets the description of a specific build which is running the access token provided by Azure Pipelines.
Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps - Containing Type
- AzureDevOpsAliases
Syntax
public static AzureDevOpsBuild AzureDevOpsBuildUsingAzurePipelinesOAuthToken(this ICakeContext context, int buildId)
Examples
Get an Azure Pipelines build:
var build =
AzureDevOpsBuildUsingAzurePipelinesOAuthToken(42);
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
buildId | int | ID of the build. |
Return Value
Type | Description |
---|---|
AzureDevOpsBuild | Description of the build.
Returns null if build could not be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false . |