AzureDevOpsAliases.

AzureDevOpsBuild(ICakeContext, AzureDevOpsBuildSettings) Method

Summary

Gets an Azure Pipelines build using the specified settings.
Assembly
Cake.AzureDevOps.dll
Namespace
Cake.AzureDevOps
Containing Type
AzureDevOpsAliases

Syntax

public static AzureDevOpsBuild AzureDevOpsBuild(this ICakeContext context, AzureDevOpsBuildSettings settings)

Examples

Get a build running on Azure DevOps Server:

 var buildSettings =
     new AzureDevOpsBuildSettings(
         new Uri("http://myserver:8080/defaultcollection"),
         "MyProject",
         42,
         AzureDevOpsAuthenticationNtlm());

 var build =
     AzureDevOpsBuild(
         buildSettings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsBuildSettings Settings for getting 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.