Skip to content

Commit

Permalink
Handle errors in docs pipeline more gracefully (#9393)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbutler authored Mar 8, 2022
1 parent cdd7a24 commit e78bab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/pipelines/templates/upload-json-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ steps:

- task: AzureCLI@2
displayName: 'Upload JSON'
continueOnError: true
inputs:
azureSubscription: 'fluid-docs'
scriptType: bash
Expand All @@ -77,9 +78,10 @@ steps:
- ${{ if eq(parameters.uploadAsLatest, true) }}:
- task: AzureCLI@2
displayName: 'Upload JSON as latest.tar.gz'
continueOnError: true
inputs:
azureSubscription: 'fluid-docs'
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az storage blob upload -f '$(Pipeline.Workspace)/$(Build.SourceVersion).tar.gz' -c 'api-extractor-json' -n latest.tar.gz --account-name ${{ parameters.STORAGE_ACCOUNT }} --account-key ${{ parameters.STORAGE_KEY }} --verbose
az storage blob upload -f '$(Pipeline.Workspace)/$(Build.SourceVersion).tar.gz' -c 'api-extractor-json' -n latest.tar.gz --account-name ${{ parameters.STORAGE_ACCOUNT }} --account-key ${{ parameters.STORAGE_KEY }} --overwrite --verbose

0 comments on commit e78bab0

Please sign in to comment.