Skip to content

Commit d8961a3

Browse files
committed
Merge branch 'release/0.4.0'
2 parents 7f95fc9 + ce6f0f1 commit d8961a3

File tree

81 files changed

+1226
-1212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1226
-1212
lines changed

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,39 @@
22

33
This addin for Cake allows you to work with Azure DevOps or Azure DevOps Server.
44

5-
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/cake-contrib/Cake.Tfs/blob/feature/build/LICENSE)
5+
[![License](http://img.shields.io/:license-mit-blue.svg)](https://github.com/cake-contrib/Cake.AzureDevOps/blob/feature/build/LICENSE)
66

77
## Information
88

99
| | Stable | Pre-release |
1010
|:--:|:--:|:--:|
11-
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.Tfs.svg)](https://github.com/cake-contrib/Cake.Tfs/releases/latest)|
12-
|NuGet|[![NuGet](https://img.shields.io/nuget/v/Cake.Tfs.svg)](https://www.nuget.org/packages/Cake.Tfs)|[![NuGet](https://img.shields.io/nuget/vpre/Cake.Tfs.svg)](https://www.nuget.org/packages/Cake.Tfs)|
11+
|GitHub Release|-|[![GitHub release](https://img.shields.io/github/release/cake-contrib/Cake.AzureDevOps.svg)](https://github.com/cake-contrib/Cake.AzureDevOps/releases/latest)|
12+
|NuGet|[![NuGet](https://img.shields.io/nuget/v/Cake.AzureDevOps.svg)](https://www.nuget.org/packages/Cake.AzureDevOps)|[![NuGet](https://img.shields.io/nuget/vpre/Cake.AzureDevOps.svg)](https://www.nuget.org/packages/Cake.AzureDevOps)|
1313

1414
## Build Status
1515

1616
| | Develop | Master |
1717
|:--:|:--:|:--:|
18-
|AppVeyor Windows|[![Build status](https://ci.appveyor.com/api/projects/status/c0akmejs4b136s0o/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-tfs/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/c0akmejs4b136s0o/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-tfs/branch/master)|
19-
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=develop&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=master&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=master)|
20-
|Azure DevOps Ubuntu|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=develop&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.Tfs/_apis/build/status/cake-contrib.Cake.Tfs?branchName=master&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.Tfs/_build/latest?definitionId=9&branchName=master)|
18+
|AppVeyor Windows|[![Build status](https://ci.appveyor.com/api/projects/status/45blf3csh70opuos/branch/develop?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-azuredevops/branch/develop)|[![Build status](https://ci.appveyor.com/api/projects/status/45blf3csh70opuos/branch/master?svg=true)](https://ci.appveyor.com/project/cakecontrib/cake-azuredevops/branch/master)|
19+
|Azure DevOps Windows|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=Windows)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|
20+
|Azure DevOps macOS|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=macOS)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=macOS)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|
21+
|Azure DevOps Ubuntu|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=develop&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=develop)|[![Build Status](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_apis/build/status/cake-contrib.Cake.AzureDevOps?branchName=master&jobName=Ubuntu)](https://dev.azure.com/cake-contrib/Cake.AzureDevOps/_build/latest?definitionId=24&branchName=master)|
22+
23+
## Demos
24+
25+
Click on the build server and repository links to see the build definition or source code and try out the addin yourself.
26+
27+
|Build Server|Repository| |
28+
|:--:|:--:|:--:|
29+
|[Azure Pipelines](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_build?definitionId=8)|[Azure Repos](https://dev.azure.com/pberger/_git/Cake.AzureDevOps-Demo)|[![Build Status](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_apis/build/status/Cake.AzureDevOps-Demo?branchName=master)](https://dev.azure.com/pberger/Cake.AzureDevOps-Demo/_build/latest?definitionId=8&branchName=master)|
2130

2231
## Code Coverage
2332

24-
[![Coverage Status](https://coveralls.io/repos/github/cake-contrib/Cake.Tfs/badge.svg?branch=develop)](https://coveralls.io/github/cake-contrib/Cake.Tfs?branch=develop)
33+
[![Coverage Status](https://coveralls.io/repos/github/cake-contrib/Cake.AzureDevOps/badge.svg?branch=develop)](https://coveralls.io/github/cake-contrib/Cake.AzureDevOps?branch=develop)
2534

2635
## Quick Links
2736

28-
- [Documentation](https://cake-contrib.github.io/Cake.Tfs)
37+
- [Documentation](https://cake-contrib.github.io/Cake.AzureDevOps)
2938

3039
## Chat Room
3140

@@ -35,4 +44,4 @@ Come join in the conversation about this addin in our Gitter Chat Room
3544

3645
## Contributing
3746

38-
Contributions are welcome. See [Contribution Guidelines](CONTRIBUTING.md).
47+
Contributions are welcome. See [Contribution Guidelines](CONTRIBUTING.md).

azure-pipelines.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ trigger:
66

77
pr:
88
- develop
9+
- release/*
10+
- hotfix/*
911

1012
jobs:
1113
- job: Windows
@@ -17,6 +19,18 @@ jobs:
1719
.\build.ps1
1820
exit $LASTEXITCODE
1921
displayName: 'Cake Build'
22+
- job: macOS
23+
pool:
24+
vmImage: 'macOS-10.14'
25+
steps:
26+
# To manually select a Xamarin SDK version on the Hosted macOS agent, enable this script with the SDK version you want to target
27+
# https://go.microsoft.com/fwlink/?linkid=871629
28+
- bash: |
29+
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
30+
displayName: 'Select Mono 5.18.1'
31+
- bash: |
32+
./build.sh
33+
displayName: 'Cake Build'
2034
- job: Ubuntu
2135
pool:
2236
vmImage: 'ubuntu-16.04'

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ if [ ! -d "$TOOLS_DIR" ]; then
4141
mkdir "$TOOLS_DIR"
4242
fi
4343

44+
# Print Mono version.
45+
echo "Mono version:"
46+
mono --version
47+
echo ""
48+
4449
###########################################################################
4550
# INSTALL .NET CORE CLI
4651
###########################################################################

docs/input/_Bottom.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="github-button">
2-
<a href="https://github.com/cake-contrib/Cake.Tfs" target="_blank"><i class="fa fa-github"></i> GitHub</a>
2+
<a href="https://github.com/cake-contrib/Cake.AzureDevOps" target="_blank"><i class="fa fa-github"></i> GitHub</a>
33
</div>
44
<script>
55
((window.gitter = {}).chat = {}).options = {

docs/input/_Footer.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p class="text-muted">
2-
Copyright &copy; Pascal Berger and <a href="https://github.com/cake-contrib/Cake.Tfs/graphs/contributors" target="_blank">contributors</a>.
2+
Copyright &copy; Pascal Berger and <a href="https://github.com/cake-contrib/Cake.AzureDevOps/graphs/contributors" target="_blank">contributors</a>.
33
<br/>
44
Website generated by <a href="http://wyam.io" target="_blank">Wyam</a>
55
</p>

docs/input/docs/index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
Title: Documentation
33
---
4-
<p>This user guide, like Cake.Tfs itself, is under very active development. Some parts of it aren't
4+
<p>This user guide, like Cake.AzureDevOps itself, is under very active development. Some parts of it aren't
55
documented as completely as they need to be, but we gladly accept your contributions.</p>
66

7-
<p>We need your help to improve the documentation for Cake.Tfs, so if there is something that you
7+
<p>We need your help to improve the documentation for Cake.AzureDevOps, so if there is something that you
88
would like to add then you can edit the content directly on GitHub.</p>
99

1010
@foreach(IDocument child in Model.DocumentList(Keys.Children).OrderBy(x => x.Get<int>(DocsKeys.Order, 1000)))

docs/input/docs/usage/index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Order: 10
3-
Description: How to obtain, configure, and use Cake.Tfs.
3+
Description: How to obtain, configure, and use Cake.AzureDevOps.
44
---
55
<p>@Html.Raw(Model.String(DocsKeys.Description))</p>
66

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
22
Order: 20
33
Title: Reading pull requests
4-
Description: Example how to read pull request information using the Cake.Tfs addin.
4+
Description: Example how to read pull request information using the Cake.AzureDevOps addin.
55
---
6-
The [Cake.Tfs addin] provides an alias for reading pull request information.
6+
The [Cake.AzureDevOps addin] provides an alias for reading pull request information.
77

88
The following example will read details of a pull request:
99

1010
```csharp
11-
#addin "Cake.Tfs"
11+
#addin "Cake.AzureDevOps"
1212

1313
Task("Read-PullRequest").Does(() =>
1414
{
1515
var pullRequestSettings =
16-
new TfsPullRequestSettings(
17-
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
16+
new AzureDevOpsPullRequestSettings(
17+
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
1818
"refs/heads/feature/myfeature",
19-
TfsAuthenticationNtlm());
19+
AzureDevOpsAuthenticationNtlm());
2020

2121
var pullRequest =
22-
TfsPullRequest(
22+
AzureDevOpsPullRequest(
2323
pullRequestSettings);
2424

2525
Information(pullRequest.TargetRefName);
2626
});
2727
```
2828

29-
[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs
29+
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
---
22
Order: 30
33
Title: Voting for pull requests
4-
Description: Example how to approve or vote for pull requests using the Cake.Tfs addin.
4+
Description: Example how to approve or vote for pull requests using the Cake.AzureDevOps addin.
55
---
6-
The [Cake.Tfs addin] provides an alias for approving or voting on pull requests.
6+
The [Cake.AzureDevOps addin] provides an alias for approving or voting on pull requests.
77

8-
The following example will approve a pull request on a Azure DevOps Server:
8+
The following example will approve a pull request on an Azure DevOps Server:
99

1010
```csharp
11-
#addin "Cake.Tfs"
11+
#addin "Cake.AzureDevOps"
1212

1313
Task("Vote-PullRequest").Does(() =>
1414
{
1515
var pullRequestSettings =
16-
new TfsPullRequestSettings(
17-
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
16+
new AzureDevOpsPullRequestSettings(
17+
new Uri("http://myserver:8080/defaultcollection/myproject/_git/myrepository"),
1818
"refs/heads/feature/myfeature",
19-
TfsAuthenticationNtlm());
19+
AzureDevOpsAuthenticationNtlm());
2020

21-
TfsVotePullRequest(
21+
AzureDevOpsVotePullRequest(
2222
pullRequestSettings,
23-
TfsPullRequestVote.Approved);
23+
AzureDevOpsPullRequestVote.Approved);
2424
});
2525
```
2626

27-
[Cake.Tfs addin]: https://www.nuget.org/packages/Cake.Tfs
27+
[Cake.AzureDevOps addin]: https://www.nuget.org/packages/Cake.AzureDevOps

0 commit comments

Comments
 (0)