-
Notifications
You must be signed in to change notification settings - Fork 558
/
azure-pipelines-arcade.yml
123 lines (122 loc) · 5.47 KB
/
azure-pipelines-arcade.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
113
114
115
116
117
118
119
120
121
122
123
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
# 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.
# This pipeline will be extended to the MicroBuild template
trigger:
batch: true
branches:
include:
- main
- release/4.*
- release/6.*
variables:
- template: /eng/common/templates-official/variables/pool-providers.yml@self
- name: _TeamName
value: WcfCore
- name: TeamName
value: WcfCore
- name: _PublishUsingPipelines
value: true
- name: _DotNetArtifactsCategory
value: .NETCore
- name: _RunAsPublic
value: false
- name: _RunAsInternal
value: true
- group: DotNet-Wcf-SDLValidation-Params
resources:
repositories:
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
sdl:
sourceAnalysisPool:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
codeql:
compiled:
enabled: false
justificationForDisabling: 'CodeQL is already enabled in pipeline dotnet-wcf-codeql; this is a duplicate scan'
binskim:
enabled: true
justificationForDisabling: true
policheck:
enabled: true
tsa:
enabled: true
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Build
displayName: Build
jobs:
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/release/6.1'))) }}:
- template: /eng/common/templates-official/job/onelocbuild.yml@self
parameters:
MirrorRepo: wcf
LclSource: lclFilesfromPackage
LclPackageId: 'LCL-JUNO-PROD-WCF'
- template: /eng/common/templates-official/jobs/jobs.yml@self
parameters:
enableMicrobuild: true
enablePublishBuildArtifacts: true
enablePublishBuildAssets: true
enablePublishUsingPipelines: $(_PublishUsingPipelines)
enableTelemetry: true
enableSourceIndex: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
helixRepo: dotnet/wcf
jobs:
- job: Windows
timeoutInMinutes: 90
pool:
${{ if eq(variables._RunAsInternal, True) }}:
name: $(DncEngInternalBuildPool)
image: 1es-windows-2022
os: windows
variables:
- _InternalBuildArgs: ''
- HelixApiAccessToken: ''
- _TestArgs: /p:ServiceUri=$(_serviceUri) /p:Root_Certificate_Installed=true /p:Client_Certificate_Installed=true /p:SSL_Available=true
- ${{ if eq(variables._RunAsInternal, True) }}:
- group: Publish-Build-Assets
- group: DotNet-HelixApi-Access
- _PublishBlobFeedUrl: https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json
- _InternalBuildArgs: /p:DotNetSignType=$(_SignType) /p:TeamName=$(_TeamName) /p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed) /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines) /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory) /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
- _serviceUri: wcfcoresrv53.westus3.cloudapp.azure.com/WcfTestService1
- _xUnitWorkItemTimeout: '00:10:00'
strategy:
matrix:
Release:
_BuildConfig: Release
${{ if eq(variables._RunAsInternal, True) }}:
_SignType: real
_DotNetPublishToBlobFeed: true
steps:
- checkout: self
clean: true
- script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -preparemachine $(_InternalBuildArgs) $(_TestArgs) /p:Test=false
displayName: Windows Build / Publish
- 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
displayName: Windows - Run Helix Tests
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
HelixAccessToken: $(HelixApiAccessToken)
XUnitWorkItemTimeout: $(_xUnitWorkItemTimeout)
RunAsPublic: $(_RunAsPublic)
RunAsInternal: $(_RunAsInternal)
IsWindowsBuild: true
- ${{ if eq(variables._RunAsInternal, True) }}:
- template: /eng/common/templates-official/post-build/post-build.yml@self
parameters:
validateDependsOn:
- Build
publishingInfraVersion: 3
enableSymbolValidation: false
enableSourceLinkValidation: false
SDLValidationParameters:
enable: true
params: ' -SourceToolsList @("policheck","credscan") -TsaInstanceURL $(_TsaInstanceURL) -TsaProjectName $(_TsaProjectName) -TsaNotificationEmail $(_TsaNotificationEmail) -TsaCodebaseAdmin $(_TsaCodebaseAdmin) -TsaBugAreaPath $(_TsaBugAreaPath) -TsaIterationPath $(_TsaIterationPath) -TsaRepositoryName "WCF" -TsaCodebaseName "WCF" -TsaPublish $True'