forked from dotnet/vscode-dotnet-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1pr-azure-pipeline.yml
More file actions
77 lines (73 loc) · 2.25 KB
/
Copy path1pr-azure-pipeline.yml
File metadata and controls
77 lines (73 loc) · 2.25 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Name: dotnet.vscode-dotnet-runtime
# URL: https://dev.azure.com/dnceng-public/public/_build?definitionId=60
trigger:
branches:
include:
- main
tags:
include:
- SDK-v*
- Runtime-v*
pr:
autoCancel: false
branches:
include:
- '*'
variables:
- name: Codeql.Enabled
value: true
# The public PR pool schema is different from the 1ES one. We use 'vmImage' which is a default azure pipeline schema. 'os' and 'name' have nothing to do with image selection here.
# 1ES uses 'image' but defining an image this way using our public pools useOneEngineeringPool not work as they aren't configured this way.
# We can later add the flag 'useOneEngineeringPool' or one engineering system: false or true in all tasks to determine if we use vmImage or a 1es pool object.
parameters:
- name: pools
type: object
default:
- name: NetCore-Public
demands: ImageOverride -equals 1es-windows-2022-open
os: windows
emoji: 🪟
- name: NetCore-Public
demands: ImageOverride -equals build.ubuntu.2204.amd64.open
os: linux
emoji: 🐧
- name: Azure Pipelines
vmImage: macOS-latest
os: macOS
emoji: 🍎
stages:
- stage: o # o is just used so it looks like a bullet point in the output of devops
jobs:
- ${{ each image in parameters.pools }}:
- template: pipeline-templates/build-test.yaml
parameters:
pool:
name: ${{ image.name }}
${{ if image.demands }}:
demands: ${{ image.demands }}
${{ if image.vmImage }}:
vmImage: ${{ image.vmImage }}
os: ${{ image.os }}
emoji: ${{ image.emoji }}
useOneEngineeringPool: false
- template: pipeline-templates/upstream-verify.yaml
parameters:
pool:
vmImage: macOS-latest
os: macOS
useOneEngineeringPool: false
- template: pipeline-templates/lint.yaml
parameters:
pool:
name: NetCore-Public
demands: ImageOverride -equals 1es-windows-2022-open
os: windows
useOneEngineeringPool: false
- template: pipeline-templates/package-vsix.yaml
parameters:
pool:
name: NetCore-Public
demands: ImageOverride -equals 1es-windows-2022-open
os: windows
useOneEngineeringPool: false
SignType: Test