AzureDevOpsAliases.

AzureDevOpsBuildTimelineRecords(ICakeContext, AzureDevOpsBuildSettings) Method

Summary

Gets the timeline entries for an Azure Pipelines build.
Assembly
Cake.AzureDevOps.dll
Namespace
Cake.AzureDevOps
Containing Type
AzureDevOpsAliases

Syntax

public static IEnumerable<AzureDevOpsTimelineRecord> AzureDevOpsBuildTimelineRecords(this ICakeContext context, AzureDevOpsBuildSettings settings)

Examples

Get timeline entries for an Azure Pipelines build:

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

 var timelineRecords =
     AzureDevOpsBuildTimelineRecords(
         buildSettings);

 Information("Timeline:");
 foreach (var timelineRecord in timelineRecords)
 {
     Information("  {0}: {1}", timelineRecord.Name, timelineRecord.Result);
 }

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
IEnumerable<AzureDevOpsTimelineRecord> The timeline entries for the build. Returns an empty list if build could not be found and ThrowExceptionIfBuildCouldNotBeFound is set to false.