I want to automatically delete artifacts in Bitbucket Downloads after 7 days. How can I do that?
G'day, @Mikołaj Waśniewski
Artifacts expiry is not configurable for the default 14 days in the Bitbucket cloud. We do have a feature request on this at:
Ability to set expiration period for artifacts
Please Vote and Watch the feature request to make sure you won't miss any updates in the future if the feature is accepted.
Regards,Syahrul
Hello @Syahrul
Does this 14 days expiration period apply also to artifacts in Bitbucket Downloads? (which can be i.e. uploaded manually)
@Mikołaj Waśniewski We had the same use case, and we built the following solution:
It is really just a few line of code. Then, you just have to run this pipeline periodically and you're done.
(In our case, it is just one step in a complete pipeline which is executed at each commit, but the core is roughly the same as yours. And it has been working reliably for us for a few years.)
Hey @Mikołaj Waśniewski
Artifacts do not expire if you upload them on the Downloads tabs.
Thanks @Syahrul ,
So is there any size limit for artifacts stored in Download tab?
It looks like you're new here. Sign in or register to get started.