1
- # This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2
- # Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
3
- # This pipeline will be extended to the MicroBuild template
1
+ # trigger ci builds for merged PRs into listed branches
2
+ # Setting batch to true, triggers one build at a time.
3
+ # if there is a push while a build in progress, it will wait,
4
+ # until the running build finishes, and produce a build with all the changes
4
5
trigger :
5
6
batch : true
6
7
branches :
@@ -10,105 +11,97 @@ trigger:
10
11
- release/4.*
11
12
- release/6.*
12
13
13
- variables :
14
- - name : _TeamName
15
- value : WcfCore
16
- - name : _PublishUsingPipelines
17
- value : true
18
- - name : _DotNetArtifactsCategory
19
- value : .NETCore
20
- - name : _RunAsPublic
21
- value : false
22
- - name : _RunAsInternal
23
- value : true
24
- - group : DotNet-Wcf-SDLValidation-Params
14
+ variables :
15
+ - name : _TeamName
16
+ value : WcfCore
17
+ - name : _PublishUsingPipelines
18
+ value : true
19
+ - name : _DotNetArtifactsCategory
20
+ value : .NETCore
21
+ - name : _RunAsPublic
22
+ value : false
23
+ - name : _RunAsInternal
24
+ value : true
25
+ - group : DotNet-Wcf-SDLValidation-Params
25
26
26
- resources :
27
- repositories :
28
- - repository : MicroBuildTemplate
29
- type : git
30
- name : 1ESPipelineTemplates/MicroBuildTemplate
31
- ref : refs/tags/release
32
- extends :
33
- template : azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
34
- parameters :
35
- sdl :
36
- sourceAnalysisPool : <AgentPoolPlaceHolder>
37
- pool :
38
- name : AzurePipelines-EO
39
- image : AzurePipelinesWindows2022compliantGPT
40
- os : windows
41
- customBuildTags :
42
- - ES365AIMigrationTooling
43
- stages :
44
- - stage : Build
45
- displayName : Build
27
+ stages :
28
+ - stage : Build
29
+ displayName : Build
30
+ jobs :
31
+ - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }} :
32
+ - template : /eng/common/templates/job/onelocbuild.yml
33
+ parameters :
34
+ MirrorRepo : wcf
35
+ LclSource : lclFilesfromPackage
36
+ LclPackageId : ' LCL-JUNO-PROD-WCF'
37
+ - template : /eng/common/templates/jobs/jobs.yml
38
+ parameters :
39
+ enableMicrobuild : true
40
+ enablePublishBuildArtifacts : true
41
+ enablePublishBuildAssets : true
42
+ enablePublishUsingPipelines : $(_PublishUsingPipelines)
43
+ enableTelemetry : true
44
+ helixRepo : dotnet/wcf
46
45
jobs :
47
- # - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}:
48
- # - template: /eng/common/templates/job/onelocbuild.yml@self
49
- # parameters:
50
- # MirrorRepo: wcf
51
- # LclSource: lclFilesfromPackage
52
- # LclPackageId: 'LCL-JUNO-PROD-WCF'
53
- - template : /eng/common/templates-official/jobs/jobs.yml@self
54
- parameters :
55
- enableMicrobuild : true
56
- enablePublishBuildArtifacts : true
57
- enablePublishBuildAssets : true
58
- enablePublishUsingPipelines : $(_PublishUsingPipelines)
59
- enableTelemetry : true
60
- helixRepo : dotnet/wcf
61
- jobs :
62
- - job : Windows
63
- timeoutInMinutes : 90
64
- pool :
46
+ - job : Windows
47
+ timeoutInMinutes : 90
48
+ pool :
49
+ name : NetCore1ESPool-Internal
50
+ demands : ImageOverride -equals windows.vs2022.amd64
51
+ variables :
52
+ - _InternalBuildArgs : ' '
53
+ - HelixApiAccessToken : ' '
54
+ - _TestArgs : /p:ServiceUri=$(_serviceUri) /p:Root_Certificate_Installed=true /p:Client_Certificate_Installed=true /p:SSL_Available=true
55
+
56
+ # Internal/Official Build Variables
57
+ - ${{ if eq(variables._RunAsInternal, True) }} :
58
+ # Only enable publishing in non-public, non PR scenarios.
59
+ # Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
60
+ # DotNet-HelixApi-Access provides: HelixApiAccessToken
61
+ - group : Publish-Build-Assets
62
+ - group : DotNet-HelixApi-Access
63
+ - _PublishBlobFeedUrl : https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
64
+ - _InternalBuildArgs : /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName)
65
+ /p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
66
+ /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
67
+ /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
68
+ /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
69
+ # Service uri needed for integration tests in official builds
70
+ - _serviceUri : wcfcoresrv53.westus3.cloudapp.azure.com/WcfTestService1
71
+
72
+ # Send to Helix variables
73
+ - _xUnitWorkItemTimeout : ' 00:10:00'
74
+
75
+ strategy :
76
+ matrix :
77
+ Release :
78
+ _BuildConfig : Release
65
79
${{ if eq(variables._RunAsInternal, True) }} :
66
- name : NetCore1ESPool-Internal
67
- demands : ImageOverride -equals windows.vs2022.amd64
68
- variables :
69
- - _InternalBuildArgs : ' '
70
- - HelixApiAccessToken : ' '
71
- - _TestArgs : /p:ServiceUri=$(_serviceUri) /p:Root_Certificate_Installed=true /p:Client_Certificate_Installed=true /p:SSL_Available=true
72
- - ${{ if eq(variables._RunAsInternal, True) }} :
73
- - group : Publish-Build-Assets
74
- - group : DotNet-HelixApi-Access
75
- - _PublishBlobFeedUrl : https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
76
- - _InternalBuildArgs : /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName) /p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed) /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines) /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory) /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
77
- - _serviceUri : wcfcoresrv53.westus3.cloudapp.azure.com/WcfTestService1
78
- - _xUnitWorkItemTimeout : ' 00:10:00'
79
- strategy :
80
- matrix :
81
- Release :
82
- _BuildConfig : Release
83
- ${{ if eq(variables._RunAsInternal, True) }} :
84
- _SignType : real
85
- _DotNetPublishToBlobFeed : true
86
- steps :
87
- - checkout : self
88
- clean : true
89
- - ${{ if eq(variables._RunAsPublic, True) }} :
90
- - template : /eng/UpdatePRService.yml
91
- parameters :
92
- wcfPRServiceId : $(_WcfPRServiceId)
93
- - script : eng\common\cibuild.cmd -configuration $(_BuildConfig) -preparemachine $(_InternalBuildArgs) $(_TestArgs) /p:Test=false
94
- displayName : Windows Build / Publish
95
- - powershell : eng\common\build.ps1 -configuration $(_BuildConfig) -preparemachine -ci -test -integrationTest -projects $(Build.SourcesDirectory)/eng/SendToHelix.proj $(_TestArgs) /p:TestJob=Windows /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
96
- displayName : Windows - Run Helix Tests
97
- env :
98
- SYSTEM_ACCESSTOKEN : $(System.AccessToken)
99
- HelixAccessToken : $(HelixApiAccessToken)
100
- XUnitWorkItemTimeout : $(_xUnitWorkItemTimeout)
101
- RunAsPublic : $(_RunAsPublic)
102
- RunAsInternal : $(_RunAsInternal)
103
- IsWindowsBuild : true
104
- - ${{ if eq(variables._RunAsInternal, True) }} :
105
- - template : /eng/common/templates-official/post-build/post-build.yml@self
106
- parameters :
107
- validateDependsOn :
108
- - Build
109
- publishingInfraVersion : 3
110
- enableSymbolValidation : false
111
- enableSourceLinkValidation : false
112
- SDLValidationParameters :
113
- enable : true
114
- params : ' -SourceToolsList @("policheck","credscan") -TsaInstanceURL $(_TsaInstanceURL) -TsaProjectName $(_TsaProjectName) -TsaNotificationEmail $(_TsaNotificationEmail) -TsaCodebaseAdmin $(_TsaCodebaseAdmin) -TsaBugAreaPath $(_TsaBugAreaPath) -TsaIterationPath $(_TsaIterationPath) -TsaRepositoryName "WCF" -TsaCodebaseName "WCF" -TsaPublish $True'
80
+ _SignType : real
81
+ _DotNetPublishToBlobFeed : true
82
+
83
+ - ${{ if eq(variables._RunAsInternal, True) }} :
84
+ - template : eng\common\templates\post-build\post-build.yml
85
+ parameters :
86
+ validateDependsOn :
87
+ - Build
88
+ publishingInfraVersion : 3
89
+ # Symbol validation isn't being very reliable lately. This should be enabled back
90
+ # once this issue is resolved: https://github.com/dotnet/arcade/issues/2871
91
+ enableSymbolValidation : false
92
+ # Sourcelink validation isn't passing for Arcade due to some regressions. This should be
93
+ # enabled back once this issue is resolved: https://github.com/dotnet/arcade/issues/2912
94
+ enableSourceLinkValidation : false
95
+ # This is to enable SDL runs part of Post-Build Validation Stage
96
+ SDLValidationParameters :
97
+ enable : true
98
+ params : ' -SourceToolsList @("policheck","credscan")
99
+ -TsaInstanceURL $(_TsaInstanceURL)
100
+ -TsaProjectName $(_TsaProjectName)
101
+ -TsaNotificationEmail $(_TsaNotificationEmail)
102
+ -TsaCodebaseAdmin $(_TsaCodebaseAdmin)
103
+ -TsaBugAreaPath $(_TsaBugAreaPath)
104
+ -TsaIterationPath $(_TsaIterationPath)
105
+ -TsaRepositoryName "WCF"
106
+ -TsaCodebaseName "WCF"
107
+ -TsaPublish $True'
0 commit comments