I have implemented the following pipe to clear pipeline caches, but it seems that this pipe clears all the caches by name, when I want it to just clear the current cache according to its file key:
https://bitbucket.org/atlassian/bitbucket-clear-cache/src/master/
Looking at the source code it seems the pipe just iterates through all of the caches with that name, when I am hoping for support for a key file to go along with the cache name. Is there a feature request outstanding for this?
Also to give more context to the problem we are trying to solve, we are looking to replace a cache according to its file key. Currently our builds skip uploading the cache if it is existing, but we want to overwrite it instead. We were hoping this pipe could help by deleting and re-uploading our cache, but it is not quite giving us what we are looking for.
Thanks!
Hi @twiechert
Thank you for your feedback! I have reached out to our pipes development team for further details, and will get back to you once I hear from them.
Cheers!
- Ben (Bitbucket Cloud Support)
Hi, I am just following up here as there was a ticket created to help address this limitation: https://jira.atlassian.com/browse/BCLOUD-23524
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @twiechert
Currently the bitbucket-clear-cache pipe implementation is based on Bitbucket Cloud API Delete caches. It supports only deletion by name of the cache or cache UUID.
The feature request ticket you've mentioned was raised on your behalf. I would encourage you to refer to our guidelines for feature request implementation as they explain how feature requests are prioritised. We do not yet have an update as to when it will be implemented - but if you Watch the feature request and Vote for it, you an track updates and increase its visibility with regard to customer demand.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.