Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Add support for caching from an arbitrary task #4440

Closed
jessehouwing opened this issue Sep 18, 2023 · 2 comments
Closed

[enhancement]: Add support for caching from an arbitrary task #4440

jessehouwing opened this issue Sep 18, 2023 · 2 comments

Comments

@jessehouwing
Copy link
Contributor

Describe your feature request here

For my azure pipelines extension, I'd like to be able to cache a few files to speed up future executions.

Right now, that's only possible if the user adds a Cache@2 task to their pipeline where needed preceded by a script step to calculate cache keys and decide whether to run the step or not.

This logic is MUCH easier to do inside my own task, as I'd be able to handle everything from there.

My proposal is to add a tasklib function similar to the ones used by GitHub Action's setup-node step.

Ideally it would use the same efficient mechanism as the current Cache steps, but would allow me to have influence over whether to overwrite the cache at the end of the job or not.

I'd use this to also cache files that can't compute the cache key based on the contents of the repo. Instead, I'd use the return value of an API call or check whether the files to cache have changed since the last run.

@jessehouwing jessehouwing changed the title [enhancement]: Add support for ##vso[cache key=12345]path;path;path to runner [enhancement]: Add support for caching from an arbirary task Sep 18, 2023
@aleksandrlevochkin
Copy link
Contributor

Hi @jessehouwing, thanks for reaching out! We are working on more prioritized issues at the moment but will get back to this one soon.

@jessehouwing jessehouwing changed the title [enhancement]: Add support for caching from an arbirary task [enhancement]: Add support for caching from an arbitrary task Oct 2, 2023
Copy link

This issue has had no activity in 180 days. Please comment if it is not actually stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants