[CI] Skip the insertions when not needed in the unified pipeline. (#17455)
This commit is contained in:
Родитель
961c0e5b5b
Коммит
a53585ea0a
|
@ -52,6 +52,10 @@ parameters:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false # only to be used when testing the CI and we do not need a signed pkg
|
default: false # only to be used when testing the CI and we do not need a signed pkg
|
||||||
|
|
||||||
|
- name: skipInsertion
|
||||||
|
type: boolean
|
||||||
|
default: false # just to be skipped by the unified pipeline.
|
||||||
|
|
||||||
- name: isPR
|
- name: isPR
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
@ -255,11 +259,12 @@ stages:
|
||||||
repositoryAlias: ${{ parameters.repositoryAlias }}
|
repositoryAlias: ${{ parameters.repositoryAlias }}
|
||||||
commit: ${{ parameters.commit }}
|
commit: ${{ parameters.commit }}
|
||||||
|
|
||||||
# .NET Release Prep and VS Insertion Stages, only execute them when the build comes from an official branch and is not a schedule build from OneLoc
|
- ${{ if eq(parameters.skipInsertion, false) }}:
|
||||||
# setting the stage at this level makes the graph of the UI look better, else the lines overlap and is not clear.
|
# .NET Release Prep and VS Insertion Stages, only execute them when the build comes from an official branch and is not a schedule build from OneLoc
|
||||||
# Got to disable the lint check because azp yaml template engine does not allow use to do a multiline if :/
|
# setting the stage at this level makes the graph of the UI look better, else the lines overlap and is not clear.
|
||||||
# yamllint disable-line rule: line-length
|
# Got to disable the lint check because azp yaml template engine does not allow use to do a multiline if :/
|
||||||
- ${{ if and(ne(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release-test/'), eq(variables['Build.SourceBranch'], 'refs/heads/net7.0'), eq(variables['Build.SourceBranch'], 'refs/heads/net8.0'), eq(parameters.forceInsertion, true))) }}:
|
# yamllint disable-line rule: line-length
|
||||||
|
- ${{ if and(ne(variables['Build.Reason'], 'Schedule'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release-test/'), eq(variables['Build.SourceBranch'], 'refs/heads/net7.0'), eq(variables['Build.SourceBranch'], 'refs/heads/net8.0'), eq(parameters.forceInsertion, true))) }}:
|
||||||
- template: ./release/vs-insertion-prep.yml
|
- template: ./release/vs-insertion-prep.yml
|
||||||
parameters:
|
parameters:
|
||||||
dependsOn:
|
dependsOn:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче