Try to condition the yamls omewhere else

This commit is contained in:
Noah Gilson 2024-10-10 13:37:38 -07:00
Родитель 3db8b04e92
Коммит 7ccb36f01c
2 изменённых файлов: 9 добавлений и 7 удалений

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

@ -77,10 +77,9 @@ jobs:
Contents: '**\*.binlog'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: false
- ${{ if eq(parameters.useOneEngineeringPool, 'true') }}:
- template: publish.yaml
parameters:
pool: ${{ parameters.pool }}
SignType: ${{ parameters.SignType }}
version: $(GetVersion.version)
useOneEngineeringPool: true
- template: publish.yaml
parameters:
pool: ${{ parameters.pool }}
SignType: ${{ parameters.SignType }}
version: $(GetVersion.version)
useOneEngineeringPool: true

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

@ -2,10 +2,12 @@ parameters:
pool: ''
SignType: ''
version: ''
useOneEngineeringPool: ''
jobs:
- job: waitForValidation
displayName: ☁️ Wait for release approval
condition: eq('${{ parameters.useOneEngineeringPool }}', 'true')
pool: server
timeoutInMinutes: 4320 # job times out in 3 days
steps:
@ -15,6 +17,7 @@ jobs:
instructions: 'Please validate that the release build has been tested, and resume to publish a new version'
onTimeout: 'reject'
- job: Publish
condition: eq('${{ parameters.useOneEngineeringPool }}', 'true')
pool:
${{ if eq(parameters.useOneEngineeringPool, 'true') }}:
${{ parameters.pool }}