ci: move the precheck dependency+condition up to the stage (#35321)

This should prevent the tests from running (and failing) when PreCheck skips the build.
This commit is contained in:
Dustin L. Howett
2024-10-08 14:12:54 -05:00
committed by GitHub
parent 10b8687174
commit 07ec7980d1

View File

@@ -32,12 +32,12 @@ stages:
displayName: Build ${{ platform }} displayName: Build ${{ platform }}
${{ if ne(variables['Build.Reason'], 'Manual') }}: ${{ if ne(variables['Build.Reason'], 'Manual') }}:
dependsOn: [Precheck] dependsOn: [Precheck]
condition: and(succeeded(), ne(dependencies.Precheck.outputs['Precheck.verifyBuildRequest.skipBuild'], 'Yes'))
${{ else }}: ${{ else }}:
dependsOn: [] dependsOn: []
jobs: jobs:
- template: job-build-project.yml - template: job-build-project.yml
parameters: parameters:
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'Manual'), ne(stageDependencies.Precheck.Precheck.outputs['verifyBuildRequest.skipBuild'], 'Yes')))
pool: pool:
${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}: ${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
name: SHINE-INT-L name: SHINE-INT-L