[Improvement] PipelineCaching: provide a mechanism to upload and download cache at specific times
See original GitHub issueType: Feature, Improvement
Enter Task Name: Cache@2, Azure Pipelines
Issue Description
My job processes many build variations, but bc of the software I’m using the cache is located in the same folder for each platform I’m building to. I’d like to have a mechanism to trigger when the post build cache event uploads the cache.
for example:
- ${{ each target in parameters.targets }}:
- ${{ each validTarget in parameters.validTargets }}:
- ${{ if eq(target, validTarget) }}:
- task: CacheDownload@0
inputs:
key: '"cache" | "$(Agent.OS)" | "${{ target }}"'
path: 'cacheFolder'
- template: steps/run-tests.yml
parameters:
target: ${{ target }}
- template: steps/build.yml
parameters:
target: ${{ target }}
- task: CacheUpload@0
inputs:
key: '"cache" | "$(Agent.OS)" | "${{ target }}"'
path: 'cacheFolder'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12
Top Results From Across the Web
Pipeline caching - Azure - Microsoft Learn
Pipeline caching can help reduce build time by allowing the outputs or downloaded dependencies from one run to be reused in later runs, ......
Read more >Pipeline caching · Codefresh | Docs
This cache mechanism is applicable to all Codefresh pipelines and steps. Distributed Docker layer caching. This type of caching is only applicable to...
Read more >Caching Pipeline Steps - Amazon SageMaker
The attributes checked are specific to the step type, and are listed in Default cache key attributes by pipeline step type. You must...
Read more >How to REDUCE Build Time Using Caching in Azure Pipelines
Pipeline caching can help reduce build time by allowing the outputs or downloaded dependencies from o... Tagged with devops, azuredevops, ...
Read more >How do I make Azure DevOps's Pipeline Cache store its result ...
According to the document Pipeline caching, this task are used to help reduce build time by allowing the outputs or downloaded dependencies ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
#13194 has silently been closed. This one and that have similar intentions, but different approach. I agree that we need this feature, whatever approach is used.
I personally prefer the other one, but this one is still open. So maybe this one is the preferred one by the developers?
nope, it’s not published but I realized it’s never gonna happen