Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Commit f6836b0

Browse files
daveneeleytomasbjerre
authored andcommitted
Add Azure Pipelines documentation (#326)
1 parent c5eac08 commit f6836b0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Generally, when fiddling with this plugin, you may want to use something like [R
127127

128128
Here are some guides on how to use the plugin with different systems. Feel free to add guides through pull requests to this repo!
129129

130+
* [Azure Pipelines](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/blob/master/README_azurepipelines.md)
130131
* [HipChat](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/blob/master/README_hipchat.md)
131132
* [Jenkins](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/blob/master/README_jenkins.md)
132133
* [Slack](https://github.com/Igogrek/bitbucket-slack-notifier)

README_azurepiplines.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Azure Pipelines
2+
3+
Here is how to integrate with Azure Pipelines (VSTS).
4+
5+
* URL should be set to `https://<account name>.visualstudio.com/<project name>/_apis/build/builds?api-version=5.0` or `https://dev.azure.com/<account name>/<project name>/_apis/build/builds?api-version=5.0`
6+
* Method should be **POST**
7+
* Post content should be:
8+
```
9+
{
10+
"definition": {
11+
"id": <build definitionId from url>
12+
}
13+
}
14+
```
15+
* Encode post content as JSON
16+
* In **Headers** add "Content-Type" with value "application/json"
17+
18+
Additional data can be sent in the post. See [Azure API Docs](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/Builds/Queue?view=azure-devops-rest-5.0) for more info. The build history will state 'Manual build for <owner of personal access token>' for each build triggered by this method.

0 commit comments

Comments
 (0)