Skip to content

Commit 542616a

Browse files
authored
Support 1es canary template validation for unified pipeline (#24731)
1 parent 6d7f1b2 commit 542616a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

eng/pipelines/pullrequest.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,21 @@ parameters:
1717
- name: Service
1818
type: string
1919
default: auto
20+
# Switch to canary to test canary 1es branch. 1es template validation will set this parameter
21+
# to canary on run.
22+
- name: oneESTemplateTag
23+
type: string
24+
default: release
25+
values:
26+
- release
27+
- canary
2028

2129
extends:
2230
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
2331
parameters:
24-
ServiceDirectory: ${{ parameters.Service }}
32+
oneESTemplateTag: ${{ parameters.oneESTemplateTag }}
33+
# Short term hack to get 1es canary validation working until we can fix manual runs with 'auto'
34+
${{ if and(eq(parameters.oneESTemplateTag, 'canary'), eq(parameters.Service, 'auto')) }}:
35+
ServiceDirectory: template/aztemplate
36+
${{ else }}:
37+
ServiceDirectory: ${{ parameters.Service }}

0 commit comments

Comments
 (0)