Class AzurePipelines
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Exposes Azure Pipelines logging commands and predefined metadata.
public sealed class AzurePipelinesProperties
Agent
The Agent metadata read from the provider environment.
public AzureAgentMetadata Agent { get; }Property Value
Build
The Build metadata read from the provider environment.
public AzureBuildMetadata Build { get; }Property Value
Deployment
The Deployment metadata read from the provider environment.
public AzureDeploymentMetadata Deployment { get; }Property Value
Pipeline
The Pipeline metadata read from the provider environment.
public AzurePipelineMetadata Pipeline { get; }Property Value
Release
The Release metadata read from the provider environment.
public AzureReleaseMetadata Release { get; }Property Value
System
The System metadata read from the provider environment.
public AzureSystemMetadata System { get; }Property Value
Methods
AddAttachment(AbsolutePath, string, string)
Emits the provider's AddAttachment command immediately.
public void AddAttachment(AbsolutePath path, string type, string name)Parameters
pathAbsolutePathtypestringnamestring
AddBuildTag(string)
Emits the provider's AddBuildTag command immediately.
public void AddBuildTag(string tag)Parameters
tagstring
AssociateArtifact(string, AzureArtifactType, string)
Emits the provider's AssociateArtifact command immediately.
public void AssociateArtifact(string artifactName, AzureArtifactType type, string location)Parameters
artifactNamestringtypeAzureArtifactTypelocationstring
AssociateArtifact(string, string, Uri)
Associates an artifact using a provider-defined custom type.
public void AssociateArtifact(string artifactName, string artifactType, Uri location)Parameters
Command(string)
Emits the provider's Command command immediately.
public void Command(string message)Parameters
messagestring
Complete(string?, AzureTaskResult?)
Emits the provider's Complete command immediately.
public void Complete(string? message = null, AzureTaskResult? result = null)Parameters
messagestring?resultAzureTaskResult?
Debug(string)
Emits the provider's Debug command immediately.
public void Debug(string message)Parameters
messagestring
EndGroup()
Emits the provider's EndGroup command immediately.
public void EndGroup()Error(string)
Emits the provider's Error command immediately.
public void Error(string message)Parameters
messagestring
LogDetail(string, AzureLogDetail)
Emits the provider's LogDetail command immediately.
public void LogDetail(string operation, AzureLogDetail options)Parameters
operationstringoptionsAzureLogDetail
LogIssue(string, AzureLogIssue)
Emits the provider's LogIssue command immediately.
public void LogIssue(string message, AzureLogIssue options)Parameters
messagestringoptionsAzureLogIssue
PrependPath(AbsolutePath)
Emits the provider's PrependPath command immediately.
public void PrependPath(AbsolutePath path)Parameters
pathAbsolutePath
Section(string)
Emits the provider's Section command immediately.
public void Section(string message)Parameters
messagestring
SetEndpoint(string, AzureEndpointField, string, string?)
Emits the provider's SetEndpoint command immediately.
public void SetEndpoint(string id, AzureEndpointField field, string value, string? key = null)Parameters
idstringfieldAzureEndpointFieldvaluestringkeystring?
SetProgress(int, string)
Emits the provider's SetProgress command immediately.
public void SetProgress(int progress, string operation)Parameters
SetSecret(string)
Emits the provider's SetSecret command immediately.
public void SetSecret(string value)Parameters
valuestring
SetVariable(string, string, AzureVariableOptions?)
Emits the provider's SetVariable command immediately.
public void SetVariable(string name, string value, AzureVariableOptions? options = null)Parameters
namestringvaluestringoptionsAzureVariableOptions?
StartGroup(string)
Emits the provider's StartGroup command immediately.
public void StartGroup(string title)Parameters
titlestring
UpdateBuildNumber(string)
Emits the provider's UpdateBuildNumber command immediately.
public void UpdateBuildNumber(string number)Parameters
numberstring
UpdateReleaseName(string)
Emits the provider's UpdateReleaseName command immediately.
public void UpdateReleaseName(string name)Parameters
namestring
UploadArtifact(AbsolutePath, string, string?)
Emits the provider's UploadArtifact command immediately.
public void UploadArtifact(AbsolutePath path, string artifactName, string? containerFolder = null)Parameters
pathAbsolutePathartifactNamestringcontainerFolderstring?
UploadFile(AbsolutePath)
Emits the provider's UploadFile command immediately.
public void UploadFile(AbsolutePath path)Parameters
pathAbsolutePath
UploadLog(AbsolutePath)
Emits the provider's UploadLog command immediately.
public void UploadLog(AbsolutePath path)Parameters
pathAbsolutePath
UploadSummary(AbsolutePath)
Emits the provider's UploadSummary command immediately.
public void UploadSummary(AbsolutePath path)Parameters
pathAbsolutePath
Warning(string)
Emits the provider's Warning command immediately.
public void Warning(string message)Parameters
messagestring