Skip to content

Commit

Permalink
Simplify cache restore (#25186)
Browse files Browse the repository at this point in the history
* Simplify cache restore

* Missed the task version

* RestoreAndSaveCache1@1 > RestoreAndSaveCache@1

* Revert changes on cache saving & add comment

* Trim whitespaces
  • Loading branch information
keesschollaart81 authored and pvizeli committed Jul 17, 2019
1 parent 971223d commit bc4f91a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ stages:
pip install pytest-azurepipelines -c homeassistant/package_constraints.txt
displayName: 'Create Virtual Environment & Install Requirements'
condition: and(succeeded(), ne(variables['CacheRestored'], 'true'))
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
displayName: 'Save artifacts based on Requirements'
inputs:
keyfile: 'requirements_test_all.txt, .cache'
targetfolder: './venv'
# Explicit Cache Save (instead of using RestoreAndSaveCache)
# Dont wait with cache save for all the other task in this job to complete (±30 minutes), other parallel jobs might utilize this
- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
displayName: 'Save artifacts based on Requirements'
inputs:
keyfile: 'requirements_test_all.txt, .cache'
targetfolder: './venv'
vstsFeed: '$(ArtifactFeed)'
- script: |
. venv/bin/activate
Expand Down

0 comments on commit bc4f91a

Please sign in to comment.