Add a finalize template which causes jobs with issues to fail (#17428)

Co-authored-by: travis plunk <github@ez13.net>
This commit is contained in:
github-actions[bot] 2022-05-24 16:03:44 -07:00 committed by GitHub
parent 865394022e
commit 71843e7236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 33 additions and 1 deletions

View File

@ -227,3 +227,5 @@ stages:
Get-Content "$(Build.StagingDirectory)\release.json"
Write-Host "##vso[artifact.upload containerfolder=metadata;artifactname=metadata]$(Build.StagingDirectory)\release.json"
displayName: Create and upload release.json file to build artifact
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -22,6 +22,7 @@ jobs:
UseJson: no
- task: AzurePowerShell@4
displayName: Check if blob exists and delete if specified
inputs:
azureSubscription: '$(AzureFileCopySubscription)'
scriptType: inlineScript
@ -47,4 +48,4 @@ jobs:
}
}
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -88,3 +88,5 @@ jobs:
inputs:
sourceScanPath: '$(Build.SourcesDirectory)\tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -53,3 +53,5 @@ jobs:
inputs:
sourceScanPath: '$(Build.SourcesDirectory)\tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -153,6 +153,8 @@ jobs:
condition: and(succeeded(), ne(variables['SkipBuild'], 'true'))
workingDirectory: $(PowerShellRoot)
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
- job: upload_${{ parameters.buildName }}
displayName: ${{ parameters.uploadDisplayName }} ${{ parameters.buildName }}
dependsOn: build_${{ parameters.buildName }}
@ -335,3 +337,5 @@ jobs:
parameters:
artifactPath: '$(Build.StagingDirectory)\signedPackages\release'
condition: and(and(succeeded(), eq(variables['SHOULD_SIGN'], 'true')),eq(variables['buildName'], 'RPM'))
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -118,3 +118,5 @@ jobs:
inputs:
sourceScanPath: '$(repoRoot)\tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -133,3 +133,5 @@ jobs:
inputs:
sourceScanPath: '$(PowerShellRoot)/tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -130,3 +130,5 @@ jobs:
inputs:
sourceScanPath: '$(repoRoot)/tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -59,3 +59,5 @@ jobs:
inputs:
sourceScanPath: '$(Build.SourcesDirectory)/tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -0,0 +1,5 @@
steps:
- pwsh: |
throw "Jobs with an Issue will not work for release. Please fix the issue and try again."
displayName: Check for SucceededWithIssues
condition: eq(variables['Agent.JobStatus'],'SucceededWithIssues')

View File

@ -57,3 +57,5 @@ jobs:
BuildTestPackage -runtime linux-musl-x64
displayName: Build test package and upload
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -78,3 +78,5 @@ jobs:
inputs:
sourceScanPath: '$(PowerShellRoot)\tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -134,3 +134,5 @@ jobs:
inputs:
sourceScanPath: '$(repoRoot)\tools'
snapshotForceEnabled: true
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml

View File

@ -353,3 +353,5 @@ jobs:
}
displayName: Clean up local Clone
condition: always()
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml