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 build artifacts for an Azure Pipelines build.
- Assembly
- Cake
.AzureDevOps .dll - Namespace
- Cake
.AzureDevOps - Containing Type
- AzureDevOpsAliases
Syntax
public static IEnumerable<AzureDevOpsBuildArtifact> AzureDevOpsBuildArtifacts(this ICakeContext context, AzureDevOpsBuildSettings settings)
Examples
Get build artifacts for an Azure Pipelines build:
var buildSettings =
new AzureDevOpsBuildSettings(
new Uri("http://myserver:8080/defaultcollection"),
"MyProject",
42,
AzureDevOpsAuthenticationNtlm());
var buildArtifacts =
AzureDevOpsBuildArtifacts(
buildSettings);
Information("Build artifacts:");
foreach (var buildArtifact in buildArtifacts)
{
Information(" {0}: {1}", buildArtifact.Name, buildArtifact.Resource.Url);
}
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
settings | Azure |
Settings for getting the build. |
Return Value
Type | Description |
---|---|
IEnumerable |
The artifacts of the build.
Returns an empty list if build could not be found and
ThrowExceptionIfBuildCouldNotBeFound is set to false . |