bitbucket-clear-cache pipe does not support key files

twiechert
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 10, 2024

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!

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2024

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)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events