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') }}
|
||||
|
||||
- name: isMainBranch
|
||||
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
|
||||
value: ${{ in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/main-ub') }}
|
||||
|
||||
- name: isScheduleTrigger
|
||||
value: ${{ eq(variables['Build.Reason'], 'Schedule') }}
|
||||
|
@ -39,7 +39,8 @@ variables:
|
|||
value: ${{ eq(variables['Build.Reason'], 'PullRequest') }}
|
||||
|
||||
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
|
||||
parameters:
|
||||
|
|
Loading…
Add table
Reference in a new issue