I noticed disk space filling up in Bamboo's artifacts directory, mostly due to a very large number of directories beginning with "plan-". In fact, there are currently 2,419 of these things.
Yet, when I look in the BUILD table in Bamboo's database, at best I can only find 182 builds with that storage tag
bamboo=# SELECT COUNT(*) FROM build WHERE storage_tag LIKE 'plan-%';
Does this mean Bamboo is expiring builds internally, but failing to actually remove the files from the filesystem?
Ok, here's one way to clear this up, but it's extremely dangerous., so please understand what you're doing.
Yep... you read that last one right... this is unspeakably scary. In my case, I can't even take a backup, as the volume is full, and I have no spares.
Note that some plan names from the database may not exist as directories in the filesystem.
Once I've done the above, then I'll have enough space to make a backup beforehand, and then I can write a script that does this on a regular basis.
I had an answer back from Atlassian Support... apparently this is "as designed". Bamboo does not delete these folders... you have to delete them manually.
This, in spite of prolific use of the word "delete" in this article: https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events