Skip to content

Commit a071e71

Browse files
authored
Add Azure Pipeline yml file for using CoreWCF service (#5633)
* add pipeline yml file * update yml file * update pipeline
1 parent 4e00ecb commit a071e71

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

azure-pipelines-arcade-PR.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ variables:
3131
value: true
3232
- name: _RunAsInternal
3333
value: false
34+
- name: _RunWithCoreWcfService
35+
value: false
3436

3537
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
3638
- name: _RunAsPublic
@@ -105,7 +107,7 @@ stages:
105107
steps:
106108
- checkout: self
107109
clean: true
108-
- ${{ if eq(variables._RunAsPublic, True) }}:
110+
- ${{ if and(eq(variables._RunAsPublic, True), ne(variables._RunWithCoreWcfService, True)) }}:
109111
- template: /eng/UpdatePRService.yml
110112
parameters:
111113
wcfPRServiceId: $(_WcfPRServiceId)
@@ -126,6 +128,7 @@ stages:
126128
-projects $(Build.SourcesDirectory)/eng/SendToHelix.proj
127129
$(_TestArgs)
128130
/p:TestJob=Windows
131+
/p:RunWithCoreWcfService=$(_RunWithCoreWcfService)
129132
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
130133
displayName: Windows - Run Helix Tests
131134
env:
@@ -169,9 +172,10 @@ stages:
169172
steps:
170173
- checkout: self
171174
clean: true
172-
- template: /eng/UpdatePRService.yml
173-
parameters:
174-
wcfPRServiceId: $(_WcfPRServiceId)
175+
- ${{ if and(eq(variables._RunAsPublic, True), ne(variables._RunWithCoreWcfService, True)) }}:
176+
- template: /eng/UpdatePRService.yml
177+
parameters:
178+
wcfPRServiceId: $(_WcfPRServiceId)
175179
- script: eng/common/cibuild.sh
176180
-configuration $(_BuildConfig)
177181
-preparemachine
@@ -187,6 +191,7 @@ stages:
187191
--projects $(Build.SourcesDirectory)/eng/SendToHelix.proj
188192
$(_TestArgs)
189193
/p:TestJob=Linux
194+
/p:RunWithCoreWcfService=$(_RunWithCoreWcfService)
190195
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
191196
displayName: Linux - Run Helix Tests
192197
env:
@@ -228,9 +233,10 @@ stages:
228233
steps:
229234
- checkout: self
230235
clean: true
231-
- template: /eng/UpdatePRService.yml
232-
parameters:
233-
wcfPRServiceId: $(_WcfPRServiceId)
236+
- ${{ if and(eq(variables._RunAsPublic, True), ne(variables._RunWithCoreWcfService, True)) }}:
237+
- template: /eng/UpdatePRService.yml
238+
parameters:
239+
wcfPRServiceId: $(_WcfPRServiceId)
234240
- script: eng\common\cibuild.cmd
235241
-configuration $(_BuildConfig)
236242
-preparemachine
@@ -246,11 +252,12 @@ stages:
246252
-projects $(Build.SourcesDirectory)/eng/SendToHelix.proj
247253
$(_TestArgs)
248254
/p:TestJob=MacOS
255+
/p:RunWithCoreWcfService=$(_RunWithCoreWcfService)
249256
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
250257
displayName: MacOS - Run Helix Tests
251258
env:
252259
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
253260
ServiceHost: $(_serviceUri)
254261
RunAsPublic: $(_RunAsPublic)
255262
RunAsInternal: $(_RunAsInternal)
256-
IsWindowsBuild: false
263+
IsWindowsBuild: false

0 commit comments

Comments
 (0)