Skip to content

Commit 292a176

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent cbff5b9 commit 292a176

File tree

1 file changed

+60
-12
lines changed

1 file changed

+60
-12
lines changed

azure-pipelines.yml

Lines changed: 60 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,67 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
53

64
trigger:
7-
- main
5+
branches:
6+
include:
7+
- main
8+
- develop
9+
- release-*
10+
paths:
11+
exclude:
12+
- .github_changelog_generator
13+
- .gitignore
14+
- CHANGELOG.md
15+
- CODE_OF_CONDUCT.md
16+
- LICENSE.md
17+
- README.md
18+
- README.zh-cn.md
19+
- NuGet.Config
20+
- assets/*
21+
- config/*
22+
- .github/*
23+
24+
# PR always trigger build
25+
pr:
26+
autoCancel: true
27+
28+
# add nf-tools repo to resources (for Azure Pipelines templates)
29+
resources:
30+
repositories:
31+
- repository: templates
32+
type: github
33+
name: nanoframework/nf-tools
34+
endpoint: nanoframework
835

936
pool:
10-
vmImage: ubuntu-latest
37+
vmImage: 'windows-latest'
38+
39+
variables:
40+
- group: sign-client-credentials
41+
- name: DOTNET_NOLOGO
42+
value: true
43+
- name: buildPlatform
44+
value: 'Any CPU'
45+
- name: buildConfiguration
46+
value: 'Release'
47+
- name: solution
48+
value: 'nanoFramework.Networking.Thread.sln'
49+
- name: nugetPackageName
50+
value: 'nanoFramework.Networking.Thread'
1151

1252
steps:
13-
- script: echo Hello, world!
14-
displayName: 'Run a one-line script'
1553

16-
- script: |
17-
echo Add other tasks to build, test, and deploy your project.
18-
echo See https://aka.ms/yaml
19-
displayName: 'Run a multi-line script'
54+
# step from template @ nf-tools repo
55+
# all build, update and publish steps
56+
- template: azure-pipelines-templates/class-lib-build.yml@templates
57+
parameters:
58+
sonarCloudProject: 'nanoframework_nanoFramework.Networking.Thread'
59+
runUnitTests: false
60+
61+
# step from template @ nf-tools repo
62+
# report error
63+
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
64+
parameters:
65+
status: 'failure'
66+
webhookUrl: '$(DiscordWebhook)'
67+
message: ''

0 commit comments

Comments
 (0)