AzureDevOpsAliases.

AzureDevOpsBuilds(ICakeContext, AzureDevOpsBuildsSettings) Method

Summary

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

Syntax

public static IEnumerable<AzureDevOpsBuild> AzureDevOpsBuilds(this ICakeContext context, AzureDevOpsBuildsSettings settings)

Examples

Get builds running on Azure DevOps Server:

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

 var builds =
     AzureDevOpsBuilds(
         buildSettings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsBuildsSettings Settings for getting the build.

Return Value

Type Description
IEnumerable<AzureDevOpsBuild> Description of the builds or an empty list of builds.