66 строки
1.5 KiB
YAML
66 строки
1.5 KiB
YAML
# Copyright (c) .NET Foundation and Contributors
|
|
# See LICENSE file in the project root for full license information.
|
|
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- main
|
|
- develop
|
|
- release-*
|
|
paths:
|
|
exclude:
|
|
- .github_changelog_generator
|
|
- .gitignore
|
|
- CHANGELOG.md
|
|
- CODE_OF_CONDUCT.md
|
|
- LICENSE.md
|
|
- README.md
|
|
- NuGet.Config
|
|
- assets/*
|
|
- config/*
|
|
- .github/*
|
|
|
|
# PR always trigger build
|
|
pr:
|
|
autoCancel: true
|
|
|
|
# add nf-tools repo to resources (for Azure Pipelines templates)
|
|
resources:
|
|
repositories:
|
|
- repository: templates
|
|
type: github
|
|
name: nanoframework/nf-tools
|
|
endpoint: nanoframework
|
|
|
|
pool:
|
|
vmImage: 'windows-latest'
|
|
|
|
variables:
|
|
- group: sign-client-credentials
|
|
- name: DOTNET_NOLOGO
|
|
value: true
|
|
- name: buildPlatform
|
|
value: 'Any CPU'
|
|
- name: buildConfiguration
|
|
value: 'Release'
|
|
- name: solution
|
|
value: 'nanoFramework.System.Net.Sockets.TcpClient.sln'
|
|
- name: nugetPackageName
|
|
value: 'nanoFramework.System.Net.Sockets.TcpClient'
|
|
|
|
steps:
|
|
|
|
# step from template @ nf-tools repo
|
|
# build steps only
|
|
- template: azure-pipelines-templates/class-lib-build.yml@templates
|
|
parameters:
|
|
sonarCloudProject: 'nanoframework_System.Net.Sockets.TcpClient'
|
|
|
|
# step from template @ nf-tools repo
|
|
# report error
|
|
- template: azure-pipelines-templates/discord-webhook-task.yml@templates
|
|
parameters:
|
|
status: 'failure'
|
|
webhookUrl: '$(DiscordWebhook)'
|
|
message: ''
|