Skip to content

Commit 380316d

Browse files
authored
Clean-up Azurite install template (Azure#25805)
Adding continueOnError:true for the cache restore step for Azurite as if the cache restore step fails we shouldn't fail the entire pipeline we should just install it.
1 parent 7742d34 commit 380316d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sdk/storage/tests-install-azurite.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ steps:
1212
key: storageazurite | "$(Agent.OS)" | "${{ parameters.AzuriteVersion }}"
1313
path: ${{ parameters.AzuriteLocation }}
1414
cacheHitVar: STORAGE_AZURITE_CACHE_RESTORED
15-
displayName: Cache Azurite instalation
15+
displayName: Cache Azurite installation
16+
continueOnError: true
1617
- task: Npm@1
1718
inputs:
1819
command: custom
1920
customCommand: install --prefix ${{ parameters.AzuriteLocation }} azurite@${{ parameters.AzuriteVersion }}
20-
condition: ne(variables.STORAGE_AZURITE_CACHE_RESTORED, 'true')
21+
condition: and(succeeded(), ne(variables.STORAGE_AZURITE_CACHE_RESTORED, 'true'))
2122
displayName: Install Azurite
2223
- task: PowerShell@2
2324
displayName: Add Azurite location as environment variable

0 commit comments

Comments
 (0)