This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
forked from dotnet/wpf
-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines1.yml
112 lines (104 loc) · 3.58 KB
/
azure-pipelines1.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# This is a simple wrapper for eng/pipeline.yml to get around the limitation of
# user-defined variables not being available in yaml template expressions.
# Parameters ARE available in template expressions, and parameters can have default values,
# so they can be used to control yaml flow.
#
variables:
# clean the local repo on the build agents
- name: Build.Repository.Clean
value: true
- name: _PublishUsingPipelines
value: true
- name: PostBuildSign
value: true
# This is set in the pipeline directly
# When set to false, CI tests will not be enabled in builds.
#
# _ContinuousIntegrationTestsEnabled: false
# Setting batch to true, triggers one build at a time.
# if there is a push while a build in progress, it will wait,
# until the running build finishes, and produce a build with all the changes
#
# only trigger ci builds for the master and release branches
trigger:
batch: true
branches:
include:
- main
- release/3.*
- release/5.*
- release/6.*
- release/7.*
- internal/release/5.*
- internal/release/6.*
- experimental/*
paths:
exclude:
- Documentation/*
pr:
autoCancel: true
branches:
include:
- drttesting
paths:
exclude:
- Documentation/*
# Call the pipeline.yml template, which does the real work
stages:
- stage: build
displayName: Build
jobs:
- template: /eng/pipeline.yml
parameters:
enablePublishUsingPipelines: $(_PublishUsingPipelines)
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
# agent pool can't be read from a user-defined variable (Azure DevOps limitation)
pool:
name: NetCore-Svc-Internal
demands: ImageOverride -equals windows.vs2022preview.amd64
# runAsPublic is used in expressions, which can't read from user-defined variables
runAsPublic: false
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- template: eng\common\templates\post-build\post-build.yml
parameters:
publishingInfraVersion: 3
enableSymbolValidation: false
enableSigningValidation: false
enableNugetValidation: false
enableSourceLinkValidation: false
# This is to enable SDL runs part of Post-Build Validation Stage
SDLValidationParameters:
enable: false
params: ' -SourceToolsList @("policheck","credscan")
-TsaInstanceURL $(_TsaInstanceURL)
-TsaProjectName $(_TsaProjectName)
-TsaNotificationEmail $(_TsaNotificationEmail)
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
-TsaBugAreaPath $(_TsaBugAreaPath)
-TsaIterationPath $(_TsaIterationPath)
-TsaRepositoryName "wpf"
-TsaCodebaseName "wpf"
-TsaPublish $True'
- stage: DrtTesting
displayName: DrtTesting
jobs:
- job: DownloadTestsZip
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '7ea9116e-9fac-403d-b258-b31fcf1bb293'
definition: '479'
buildVersionToDownload: 'specific'
pipelineId: '1702475'
artifactName: 'Tests.Release.x64.zip'
targetPath: '$(Pipeline.Workspace)\testszip\'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '7ea9116e-9fac-403d-b258-b31fcf1bb293'
definition: '479'
buildVersionToDownload: 'specific'
pipelineId: '1702475'
artifactName: 'Tests.Release.x86.zip'
targetPath: '$(Pipeline.Workspace)\testszip\'