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.Issues.PullRequests.AzureDevOps.
Summary
Gets an object for writing issues to Azure DevOps pull request in a specific repository and with a specific ID.
- Assembly
- Cake
.Issues .PullRequests .AzureDevOps .dll - Namespace
- Cake
.Issues .PullRequests .AzureDevOps - Containing Type
- Azure
Dev Ops Pull Request System Aliases
Syntax
public static IPullRequestSystem AzureDevOpsPullRequests(this ICakeContext context, Uri repositoryUrl, int pullRequestId, IAzureDevOpsCredentials credentials)
Examples
Report code analysis issues reported as MsBuild warnings to an Azure DevOps Server pull request:
ReportIssuesToPullRequest(
MsBuildCodeAnalysis(
@"c:\build\msbuild.log",
MsBuildXmlFileLoggerFormat),
AzureDevOpsPullRequests(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
5,
AzureDevOpsAuthenticationNtlm()),
@"c:\repo");
Attributes
Type | Description |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
repositoryUrl | Uri | Full URL of the Git repository,
e.g. .
Supported URL schemes are HTTP, HTTPS and SSH.
URLs using SSH scheme are converted to HTTPS. |
pullRequestId | int | ID of the pull request. |
credentials | I |
Credentials to use to authenticate against Azure DevOps. |
Return Value
Type | Description |
---|---|
IPullRequestSystem | Object for writing issues to Azure DevOps pull request. |