forked from OPCFoundation/UA-.NETStandard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines-preview.yml
More file actions
52 lines (47 loc) · 1.41 KB
/
Copy pathazure-pipelines-preview.yml
File metadata and controls
52 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Azure pipeline
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
parameters:
- name: managedPool
displayName: 'Use the netstandard Managed DevOps Pool (adds ImageOverride demand for Windows)'
type: boolean
default: true
pr: none
trigger:
branches:
include:
- 'master'
- 'main'
paths:
include:
- 'src/**'
- 'src/**'
- 'tools/**'
- 'samples/Opc.Ua.*/**'
variables:
# When managedPool is true, route the preview NuGet build to the
# 'netstandard' Managed DevOps Pool and select the image via the
# ImageOverride demand. See
# https://learn.microsoft.com/azure/devops/managed-devops-pools/configure-images#use-demands-to-specify-an-image
${{ if parameters.managedPool }}:
poolName: 'netstandard'
windowsImage: 'windows-2022-g2'
${{ else }}:
poolName: ''
windowsImage: 'windows-2025-vs2026'
stages:
- stage: nugetpreview
displayName: 'Push Nuget Preview'
jobs:
- template: .azurepipelines/preview.yml
parameters:
upload: ${{ ne(variables['Build.Reason'], 'PullRequest') }}
config: 'Release'
poolName: ${{ variables.poolName }}
windowsImage: ${{ variables.windowsImage }}
- template: .azurepipelines/preview.yml
parameters:
upload: ${{ ne(variables['Build.Reason'], 'PullRequest') }}
config: 'Debug'
poolName: ${{ variables.poolName }}
windowsImage: ${{ variables.windowsImage }}