AzureDevOpsAliases.

AzureDevOpsBuildDefinitions(ICakeContext, AzureDevOpsBuildsSettings) Method

Summary

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

Syntax

public static IEnumerable<AzureDevOpsBuildDefinition> AzureDevOpsBuildDefinitions(this ICakeContext context, AzureDevOpsBuildsSettings settings)

Examples

Get build definitions running on Azure DevOps Server:

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

 var buildDefinitions =
     AzureDevOpsBuildDefinitions(
         buildSettings);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Parameters

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

Return Value

Type Description
IEnumerable<AzureDevOpsBuildDefinition> The build definitions or an empty list of build definitions.