AzureDevOpsPullRequestSystemAliases.

AzureDevOpsPullRequests(ICakeContext, AzureDevOpsPullRequestSystemSettings) Method

Summary

Gets an object for writing issues to Azure DevOps pull request using the specified settings.

Syntax

public static IPullRequestSystem AzureDevOpsPullRequests(this ICakeContext context, AzureDevOpsPullRequestSystemSettings settings)

Examples

Report code analysis issues reported as MsBuild warnings to an Azure DevOps Server pull request:

 var pullRequestSettings =
         new AzureDevOpsPullRequestSettings(
             new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
             "refs/heads/feature/myfeature",
             AzureDevOpsAuthenticationNtlm());

     ReportCodeAnalysisIssuesToPullRequest(
         MsBuildCodeAnalysis(
             @"c:\build\msbuild.log",
             MsBuildXmlFileLoggerFormat),
         AzureDevOpsPullRequests(pullRequestSettings),
         @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings AzureDevOpsPullRequestSystemSettings Settings for accessing the pull request system.

Return Value

Type Description
IPullRequestSystem Object for writing issues to Azure DevOps pull request.
GitHub