2022-02-03 22:03:34 +03:00
|
|
|
# Copyright (c) .NET Foundation and Contributors
|
|
|
|
# See LICENSE file in the project root for full license information.
|
|
|
|
|
2021-05-17 16:47:37 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
2022-02-03 22:03:34 +03:00
|
|
|
include:
|
|
|
|
- main
|
|
|
|
- develop
|
|
|
|
- release-*
|
2021-05-17 16:47:37 +03:00
|
|
|
paths:
|
2022-02-03 22:03:34 +03:00
|
|
|
exclude:
|
|
|
|
- .github_changelog_generator
|
|
|
|
- .gitignore
|
|
|
|
- CHANGELOG.md
|
|
|
|
- CODE_OF_CONDUCT.md
|
|
|
|
- LICENSE.md
|
|
|
|
- README.md
|
|
|
|
- NuGet.Config
|
|
|
|
- assets/*
|
|
|
|
- config/*
|
|
|
|
- .github/*
|
|
|
|
|
2021-05-17 16:47:37 +03:00
|
|
|
# PR always trigger build
|
2021-11-25 14:11:35 +03:00
|
|
|
pr:
|
|
|
|
autoCancel: true
|
2021-05-17 16:47:37 +03:00
|
|
|
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: templates
|
|
|
|
type: github
|
|
|
|
name: nanoframework/nf-tools
|
|
|
|
endpoint: nanoframework
|
|
|
|
|
|
|
|
pool:
|
2022-02-03 22:03:34 +03:00
|
|
|
vmImage: 'windows-latest'
|
2021-05-17 16:47:37 +03:00
|
|
|
|
|
|
|
variables:
|
2024-01-20 21:22:52 +03:00
|
|
|
- group: sign-client-credentials
|
|
|
|
- name: DOTNET_NOLOGO
|
|
|
|
value: true
|
|
|
|
- name: buildPlatform
|
|
|
|
value: 'Any CPU'
|
|
|
|
- name: buildConfiguration
|
|
|
|
value: 'Release'
|
|
|
|
- name: solution
|
|
|
|
value: 'nanoFramework.System.IO.Ports.sln'
|
|
|
|
- name: nugetPackageName
|
|
|
|
value: 'nanoFramework.System.IO.Ports'
|
2021-05-17 16:47:37 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# all build, update and publish steps
|
|
|
|
- template: azure-pipelines-templates/class-lib-build.yml@templates
|
|
|
|
parameters:
|
2021-05-25 02:04:24 +03:00
|
|
|
sonarCloudProject: 'nanoframework_System.IO.Ports'
|
2021-05-17 16:47:37 +03:00
|
|
|
|
2022-08-04 04:37:26 +03:00
|
|
|
# update dependents
|
|
|
|
- template: azure-pipelines-templates/update-dependents.yml@templates
|
|
|
|
parameters:
|
2022-12-28 17:24:33 +03:00
|
|
|
${{ if eq(variables['UPDATE_DEPENDENTS'], 'true') }}:
|
|
|
|
waitBeforeUpdate: false
|
|
|
|
${{ else }}:
|
|
|
|
waitBeforeUpdate: true
|
2022-08-04 04:37:26 +03:00
|
|
|
repositoriesToUpdate: |
|
2022-09-15 19:32:25 +03:00
|
|
|
nanoFramework.Logging
|
2022-08-04 04:37:26 +03:00
|
|
|
|
2021-05-17 16:47:37 +03:00
|
|
|
# step from template @ nf-tools repo
|
|
|
|
# report error
|
|
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
|
|
parameters:
|
|
|
|
status: 'failure'
|
|
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
|
|
message: ''
|