11# This is a simple wrapper for eng/pipeline.yml to get around the limitation of
22# user-defined variables not being available in yaml template expressions.
33
4- # Parameters ARE available in template expressions, and parameters can have default values,
5- # so they can be used to control yaml flow.
6- #
7-
4+ # Parameters ARE available in template expressions, and parameters can have default values
85variables :
9- # clean the local repo on the build agents
10- - name : Build.Repository.Clean
6+ # clean the local repo on the build agents
7+ - name : Build.Repository.Clean
8+ value : true
9+ - name : _DotNetArtifactsCategory
10+ value : WINDOWSDESKTOP
11+ - name : _DotNetValidationArtifactsCategory
12+ value : WINDOWSDESKTOP
13+ - ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }} :
14+ - name : PostBuildSign
15+ value : false
16+ - ${{ else }} :
17+ - name : PostBuildSign
1118 value : true
12- - ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/')) }} :
13- - name : PostBuildSign
14- value : false
15- - ${{ else }} :
16- - name : PostBuildSign
17- value : true
18-
19- - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
20- - group : DotNet-Wpf-SDLValidation-Params
21-
22-
23- # This is set in the pipeline directly
24- # When set to false, CI tests will not be enabled in builds.
25- #
26- # _ContinuousIntegrationTestsEnabled: false
27-
28- # Setting batch to true, triggers one build at a time.
29- # if there is a push while a build in progress, it will wait,
30- # until the running build finishes, and produce a build with all the changes
31- #
32- # only trigger ci builds for the master and release branches
19+ - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
20+ - group : DotNet-Wpf-SDLValidation-Params
3321trigger :
34- batch : true
22+ batch : true
3523 branches :
36- include :
24+ include :
3725 - main
3826 - release/3.*
3927 - release/5.*
@@ -47,50 +35,39 @@ trigger:
4735 paths :
4836 exclude :
4937 - Documentation/*
50-
51- pr :
52- autoCancel : true
53- branches :
54- include :
55- - main
56- - release/3.*
57- - internal/release/3.*
58- - release/5.*
59- - release/6.*
60- - release/7.*
61- - experimental/*
62- paths :
63- exclude :
64- - Documentation/*
65-
66- # Call the pipeline.yml template, which does the real work
67- stages :
68- - stage : build
69- displayName : Build
70- jobs :
71- - template : /eng/pipeline.yml
72- parameters :
73- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
74- runAsPublic : false
75-
76- - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
77- - template : eng\common\templates\post-build\post-build.yml
78- parameters :
79- publishingInfraVersion : 3
80- enableSymbolValidation : false
81- enableSigningValidation : false
82- enableNugetValidation : false
83- enableSourceLinkValidation : false
84- # This is to enable SDL runs part of Post-Build Validation Stage
85- SDLValidationParameters :
86- enable : false
87- params : ' -SourceToolsList @("policheck","credscan")
88- -TsaInstanceURL $(_TsaInstanceURL)
89- -TsaProjectName $(_TsaProjectName)
90- -TsaNotificationEmail $(_TsaNotificationEmail)
91- -TsaCodebaseAdmin $(_TsaCodebaseAdmin)
92- -TsaBugAreaPath $(_TsaBugAreaPath)
93- -TsaIterationPath $(_TsaIterationPath)
94- -TsaRepositoryName "wpf"
95- -TsaCodebaseName "wpf"
96- -TsaPublish $True'
38+ resources :
39+ repositories :
40+ - repository : 1ESPipelineTemplates
41+ type : git
42+ name : 1ESPipelineTemplates/1ESPipelineTemplates
43+ ref : refs/tags/release
44+ extends :
45+ template : v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
46+ parameters :
47+ featureFlags :
48+ autoBaseline : true
49+ pool :
50+ name : NetCore1ESPool-Internal
51+ image : 1es-windows-2022-pt
52+ os : windows
53+ customBuildTags :
54+ - ES365AIMigrationTooling
55+ stages :
56+ - stage : build
57+ displayName : Build
58+ jobs :
59+ - template : /eng/pipeline.yml@self
60+ parameters :
61+ ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
62+ runAsPublic : false
63+ - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
64+ - template : /eng/common/templates-official/post-build/post-build.yml@self
65+ parameters :
66+ publishingInfraVersion : 3
67+ enableSymbolValidation : false
68+ enableSigningValidation : false
69+ enableNugetValidation : false
70+ enableSourceLinkValidation : false
71+ SDLValidationParameters :
72+ enable : false
73+ params : ' -SourceToolsList @("policheck","credscan") -TsaInstanceURL $(_TsaInstanceURL) -TsaProjectName $(_TsaProjectName) -TsaNotificationEmail $(_TsaNotificationEmail) -TsaCodebaseAdmin $(_TsaCodebaseAdmin) -TsaBugAreaPath $(_TsaBugAreaPath) -TsaIterationPath $(_TsaIterationPath) -TsaRepositoryName "wpf" -TsaCodebaseName "wpf" -TsaPublish $True'
0 commit comments