[CI] Skip the insertions when not needed in the unified pipeline. (#17455)

This commit is contained in:
Manuel de la Pena 2023-02-06 21:06:51 -05:00 коммит произвёл GitHub
Родитель 961c0e5b5b
Коммит a53585ea0a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 17 добавлений и 12 удалений

Просмотреть файл

@ -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,6 +259,7 @@ stages:
repositoryAlias: ${{ parameters.repositoryAlias }} repositoryAlias: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.commit }} commit: ${{ parameters.commit }}
- ${{ if eq(parameters.skipInsertion, false) }}:
# .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 # .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
# setting the stage at this level makes the graph of the UI look better, else the lines overlap and is not clear. # setting the stage at this level makes the graph of the UI look better, else the lines overlap and is not clear.
# Got to disable the lint check because azp yaml template engine does not allow use to do a multiline if :/ # Got to disable the lint check because azp yaml template engine does not allow use to do a multiline if :/