Skip to content

Commit 2e64861

Browse files
fix
1 parent 24d440f commit 2e64861

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

azurepipeline.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ trigger:
55
pr:
66
branches:
77
include:
8-
- "*"
8+
9+
variables:
10+
- name: BUILD_BRANCH
11+
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
12+
value: $(System.PullRequest.TargetBranch)
13+
${{ else }}:
14+
value: $(Build.SourceBranchName) - "*"
915

1016
jobs:
1117
- job: Build
1218
pool:
1319
vmImage: ubuntu-20.04
20+
container:
21+
image: sonicdev-microsoft.azurecr.io:443/sonic-slave-buster:$(BUILD_BRANCH)
1422

1523
variables:
1624
DIFF_COVER_CHECK_THRESHOLD: 80

0 commit comments

Comments
 (0)