Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket-clear-cache pipe does not support key files

twiechert 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)

 

twiechert January 6, 2025

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

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2025

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)

  

Suggest an answer

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

Atlassian Community Events