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:
Alexander Köplinger 2024-02-06 14:22:36 +01:00 committed by GitHub
parent 198b5a8a9d
commit fb7b9a4b9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: