forked from dotnet/corert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxplat-job.yml
81 lines (63 loc) · 2.47 KB
/
xplat-job.yml
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
78
79
80
81
parameters:
buildConfig: ''
archType: ''
osGroup: ''
osIdentifier: ''
name: ''
displayName: ''
condition: ''
dependsOn: ''
timeoutInMinutes: ''
# arcade-specific parameters
gatherAssetManifests: false
variables: {} ## any extra variables to add to the defaults defined below
jobs:
- template: /eng/common/templates/job/job.yml
parameters:
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
name: ${{ parameters.name }}
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
name: ${{ format('{0}_prtest', parameters.name) }}
displayName: ${{ parameters.displayName }}
condition: ${{ parameters.condition }}
dependsOn: ${{ parameters.dependsOn }}
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
# Send telemetry for official builds
enableTelemetry: ${{ and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}
helixRepo: 'dotnet/coreclr'
enableMicrobuild: false
pool:
${{ if and(eq(parameters.osGroup, 'Linux'), eq(variables['System.TeamProject'], 'public')) }}:
name: NetCorePublic-Pool
queue: BuildPool.Ubuntu.1604.Amd64.Open
${{ if and(eq(parameters.osGroup, 'OSX'), eq(variables['System.TeamProject'], 'public')) }}:
name: Hosted MacOS
${{ if and(eq(parameters.osGroup, 'Windows_NT'), eq(variables['System.TeamProject'], 'public')) }}:
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2017.Open
workspace:
clean: all
${{ if ne(parameters.containerName, '') }}:
container: ${{ parameters.containerName }}
${{ if eq(parameters.osGroup, 'Linux') }}:
agentOs: Ubuntu
${{ if eq(parameters.osGroup, 'OSX') }}:
agentOs: MacOS
${{ if eq(parameters.osGroup, 'Windows_NT') }}:
agentOs: Windows_NT
# Setting this results in the arcade job template including a step
# that gathers asset manifests and publishes them to pipeline
# storage. Only relevant for build jobs.
enablePublishBuildAssets: ${{ parameters.gatherAssetManifests }}
variables:
- name: buildConfig
value: ${{ parameters.buildConfig }}
- name: archType
value: ${{ parameters.archType }}
- name: osGroup
value: ${{ parameters.osGroup }}
- name: osIdentifier
value: ${{ parameters.osIdentifier }}
- ${{ each variable in parameters.variables }}:
- ${{insert}}: ${{ variable }}
steps: ${{ parameters.steps }}