Skip to content

Commit

Permalink
[Ci]: Fix an azp template syntax error (sonic-net#10446)
Browse files Browse the repository at this point in the history
Why I did it
[Ci]: Fix an azp template syntax error
See https://dev.azure.com/mssonic/build/_build/results?buildId=86535&view=results

/.azure-pipelines/docker-sonic-slave.yml (Line: 62, Col: 47): Expected a mapping
  • Loading branch information
xumia authored Apr 3, 2022
1 parent a5018e7 commit e1c36db
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .azure-pipelines/docker-sonic-slave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ stages:
- ${{ each dist in parameters.dists }}:
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
- ${{ each arch in parameters.arches }}:
${{ if eq(variables['System.PullRequest.TargetBranch'], 'master') }}:
- template: docker-sonic-slave-template.yml
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
${{ else }}:
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
- ${{ if eq(variables['System.PullRequest.TargetBranch'], 'master') }}:
- template: docker-sonic-slave-template.yml
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}
- ${{ else }}:
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
parameters:
pool: sonicbld
arch: ${{ arch }}
dist: ${{ dist }}

0 comments on commit e1c36db

Please sign in to comment.