question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Improvement] PipelineCaching: provide a mechanism to upload and download cache at specific times

See original GitHub issue

Type: 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:12

github_iconTop GitHub Comments

2reactions
emibcncommented, Jan 26, 2022

#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?

1reaction
StephenHodgsoncommented, Dec 18, 2022

nope, it’s not published but I realized it’s never gonna happen

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found