AzureDevOpsBuildSettings Class

Summary

Settings for aliases handling builds.
graph BT Type-->Base0["BaseAzureDevOpsProjectSettings"] click Base0 "/api/Cake.AzureDevOps/BaseAzureDevOpsProjectSettings" Base0-->Base1["BaseAzureDevOpsCollectionSettings"] click Base1 "/api/Cake.AzureDevOps/BaseAzureDevOpsCollectionSettings" Base1-->Base2["BaseAzureDevOpsCredentialsSettings"] click Base2 "/api/Cake.AzureDevOps/BaseAzureDevOpsCredentialsSettings" Base2-->Base3["Object"] Type["AzureDevOpsBuildSettings"] class Type type-node

Syntax

public class AzureDevOpsBuildSettings : BaseAzureDevOpsProjectSettings

Constructors

Name Summary
AzureDevOpsBuildSettings(AzureDevOpsBuildSettings) Initializes a new instance of the AzureDevOpsBuildSettings class based on the instance of a AzureDevOpsBuildSettings class.
AzureDevOpsBuildSettings(IAzureDevOpsCredentials) Initializes a new instance of the AzureDevOpsBuildSettings class using environment variables as set by an Azure Pipelines build.
AzureDevOpsBuildSettings(int, IAzureDevOpsCredentials) Initializes a new instance of the AzureDevOpsBuildSettings class using environment variables as set by an Azure Pipelines build.
AzureDevOpsBuildSettings(Uri, Guid, int, IAzureDevOpsCredentials) Initializes a new instance of the AzureDevOpsBuildSettings class.
AzureDevOpsBuildSettings(Uri, string, int, IAzureDevOpsCredentials) Initializes a new instance of the AzureDevOpsBuildSettings class.

Properties

Name Value Summary
BuildId int
Gets the ID of the build.
CollectionUrl Uri
Gets the full URL of the Azure DevOps collection, eg.
http://myserver:8080/defaultcollection
.
Credentials IAzureDevOpsCredentials
Gets the credentials used to authenticate against Azure DevOps.
ProjectGuid Guid
Gets the Guid of the project. Can be System.Guid.Empty if ProjectName is set.
ProjectName string
Gets the name of the project. Can be null if ProjectGuid is set.
ThrowExceptionIfBuildCouldNotBeFound bool
Gets or sets a value indicating whether an exception should be thrown if build for BuildId could not be found.

Methods

Name Value Summary
UsingAzurePipelinesOAuthToken() AzureDevOpsBuildSettings
Constructs the settings object using the access token provided by Azure Pipelines.
static
UsingAzurePipelinesOAuthToken(int) AzureDevOpsBuildSettings
Constructs the settings object for a specific build using the access token provided by Azure Pipelines.
static

Extension Methods

Name Value Summary
Dump<AzureDevOpsBuildSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<AzureDevOpsBuildSettings>(AzureDevOpsBuildSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<AzureDevOpsBuildSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<AzureDevOpsBuildSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<AzureDevOpsBuildSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<AzureDevOpsBuildSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin