Cake.AzureDevOps

Addin for the Cake build automation system for working with Azure DevOps or Azure DevOps Server.

#addin nuget:?package=Cake.AzureDevOps&version=0.5.1

<package id="Cake.AzureDevOps" version="0.5.1" />

dotnet add package Cake.AzureDevOps --version 0.5.1

<PackageReference Include="Cake.AzureDevOps" Version="0.5.1" />

Aliases

Contains functionality related to Azure DevOps.

Authentication

AzureDevOpsAuthenticationAzureActiveDirectory(ICakeContext, string, string) Returns credentials for authentication with an Azure Active Directory. Can only be used with Azure DevOps.
AzureDevOpsAuthenticationBasic(ICakeContext, string, string) Returns credentials for basic authentication. Can only be used for on-premise Azure DevOps Server configured for basic authentication. See https://www.visualstudio.com/en-us/docs/integrate/get-started/auth/tfs-basic-auth.
AzureDevOpsAuthenticationNtlm(ICakeContext) Returns credentials for integrated / NTLM authentication. Can only be used for on-premise Azure DevOps Server.
AzureDevOpsAuthenticationOAuth(ICakeContext, string) Returns credentials for OAuth authentication. Can only be used with Azure DevOps.
AzureDevOpsAuthenticationPersonalAccessToken(ICakeContext, string) Returns credentials for authentication with a personal access token. Can be used for Azure DevOps Server and Azure DevOps Service.

Azure Pipelines

AzureDevOpsBuild(ICakeContext, AzureDevOpsBuildSettings) Gets an Azure Pipelines build using the specified settings.
AzureDevOpsBuildArtifacts(ICakeContext, AzureDevOpsBuildSettings) Gets the build artifacts for an Azure Pipelines build.
AzureDevOpsBuildChanges(ICakeContext, AzureDevOpsBuildSettings) Gets the changes associated with an Azure Pipelines build.
AzureDevOpsBuildIsFailing(ICakeContext, AzureDevOpsBuildSettings) Returns if the Azure DevOps build is failing.
AzureDevOpsBuilds(ICakeContext, AzureDevOpsBuildsSettings) Gets Azure Pipelines builds using the specified settings.
AzureDevOpsBuildTestRuns(ICakeContext, AzureDevOpsBuildSettings) Gets the test runs for an Azure Pipelines build.
AzureDevOpsBuildTimelineRecords(ICakeContext, AzureDevOpsBuildSettings) Gets the timeline entries for an Azure Pipelines build.
AzureDevOpsBuildUsingAzurePipelinesOAuthToken(ICakeContext) Gets the description of the Azure Pipelines build which is running. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
AzureDevOpsBuildUsingAzurePipelinesOAuthToken(ICakeContext, int) Gets the description of a specific build which is running the access token provided by Azure Pipelines. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.

Pull Request

AzureDevOpsAddCommentToPullRequest(ICakeContext, AzureDevOpsPullRequestSettings, string) Adds a new comment thread with a single comment to an Azure DevOps pull request using the specified settings.
AzureDevOpsCreatePullRequest(ICakeContext, AzureDevOpsCreatePullRequestSettings) Creates a pull request in Azure DevOps using the specified settings.
AzureDevOpsGetPullRequestCommits(ICakeContext, AzureDevOpsPullRequestSettings) Gets the commits contained in the Azure DevOps pull request using the specified settings.
AzureDevOpsPullRequest(ICakeContext, AzureDevOpsPullRequestSettings) Gets an Azure DevOps pull request using the specified settings.
AzureDevOpsPullRequestUsingAzurePipelinesOAuthToken(ICakeContext) Gets an Azure DevOps pull request using the settings provided by an Azure Pipelines build. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
AzureDevOpsPullRequestUsingAzurePipelinesOAuthToken(ICakeContext, bool) Gets an Azure DevOps pull request using the settings provided by an Azure Pipelines build. Make sure the build has the 'Allow Scripts to access OAuth token' option enabled.
AzureDevOpsSetPullRequestStatus(ICakeContext, AzureDevOpsPullRequestSettings, AzureDevOpsPullRequestStatus) Sets a status on an Azure DevOps pull request using the specified settings.
AzureDevOpsVotePullRequest(ICakeContext, AzureDevOpsPullRequestSettings, AzureDevOpsPullRequestVote) Votes for an Azure DevOps pull request using the specified settings.