Don't run vmr-scan.yml for PRs in ci.yml and treat main-ub as a main branch (#18515)
This commit is contained in:
parent
198b5a8a9d
commit
fb7b9a4b9e
1 changed files with 3 additions and 2 deletions
|
@ -30,7 +30,7 @@ variables:
|
||||||
value: ${{ eq(variables['System.TeamProject'], 'internal') }}
|
value: ${{ eq(variables['System.TeamProject'], 'internal') }}
|
||||||
|
|
||||||
- name: isMainBranch
|
- name: isMainBranch
|
||||||
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
|
value: ${{ in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/main-ub') }}
|
||||||
|
|
||||||
- name: isScheduleTrigger
|
- name: isScheduleTrigger
|
||||||
value: ${{ eq(variables['Build.Reason'], 'Schedule') }}
|
value: ${{ eq(variables['Build.Reason'], 'Schedule') }}
|
||||||
|
@ -39,7 +39,8 @@ variables:
|
||||||
value: ${{ eq(variables['Build.Reason'], 'PullRequest') }}
|
value: ${{ eq(variables['Build.Reason'], 'PullRequest') }}
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- template: templates/stages/vmr-scan.yml
|
- ${{ if not(eq(variables.isPRTrigger, 'true')) }}:
|
||||||
|
- template: templates/stages/vmr-scan.yml
|
||||||
|
|
||||||
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
|
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue