-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines-pr.yml
80 lines (70 loc) · 2.39 KB
/
azure-pipelines-pr.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
trigger: none
pr:
branches:
include:
- main
stages:
- stage: build
dependsOn: []
displayName: Build
jobs:
- template: /eng/common/templates/jobs/jobs.yml
parameters:
enableMicrobuild: false
enablePublishBuildArtifacts: true
enablePublishTestResults: false
enablePublishBuildAssets: false
enablePublishUsingPipelines: false
enableTelemetry: true
helixRepo: dotnet/arcade-services
jobs:
- job: Windows_NT
timeoutInMinutes: 90
pool:
${{ if eq(variables['System.TeamProject'], 'internal')}}:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals 1es-windows-2019
${{ if eq(variables['System.TeamProject'], 'public')}}:
name: NetCore-Public
demands: ImageOverride -equals 1es-windows-2019-open
strategy:
matrix:
# Only build debug in non-official builds
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
debug_configuration:
_BuildConfig: Debug
_PublishType: none
_SignType: test
_DotNetPublishToBlobFeed : false
release_configuration:
_BuildConfig: Release
# PRs or external builds are not signed.
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
_PublishType: none
_SignType: test
_DotNetPublishToBlobFeed : false
steps:
- checkout: self
clean: true
- task: UseDotNet@2
displayName: Install Correct .NET Version
inputs:
useGlobalJson: true
- task: UseDotNet@2
displayName: Install .NET Version 3.1
inputs:
version: 3.1.x
- task: NuGetToolInstaller@0
inputs:
versionSpec: 6.1.x
- powershell: eng/set-version-parameters.ps1
displayName: Calculate release version variables
- script: eng/common/cibuild.cmd
-configuration $(_BuildConfig)
-prepareMachine
/p:Test=false
/P:Sign=false
name: Build
displayName: Build / Publish
condition: succeeded()
- template: /eng/test.yaml