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:
parent
865394022e
commit
71843e7236
@ -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
|
||||
|
@ -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
|
||||
|
@ -88,3 +88,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(Build.SourcesDirectory)\tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -53,3 +53,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(Build.SourcesDirectory)\tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -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
|
||||
|
@ -118,3 +118,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(repoRoot)\tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -133,3 +133,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(PowerShellRoot)/tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -130,3 +130,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(repoRoot)/tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -59,3 +59,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(Build.SourcesDirectory)/tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -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')
|
@ -57,3 +57,5 @@ jobs:
|
||||
BuildTestPackage -runtime linux-musl-x64
|
||||
|
||||
displayName: Build test package and upload
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -78,3 +78,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(PowerShellRoot)\tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -134,3 +134,5 @@ jobs:
|
||||
inputs:
|
||||
sourceScanPath: '$(repoRoot)\tools'
|
||||
snapshotForceEnabled: true
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
@ -353,3 +353,5 @@ jobs:
|
||||
}
|
||||
displayName: Clean up local Clone
|
||||
condition: always()
|
||||
|
||||
- template: /tools/releaseBuild/azureDevOps/templates/step/finalize.yml
|
||||
|
Loading…
Reference in New Issue
Block a user