Automatic branch cleanup has not been working on our Bamboo instance. It occurred to me that because our instance runs on EC2, and we shut it down at night to reduced costs, maybe the cleanup job was simply not running. I let the instance run overnight and sure enough, at 3am, dozens of branches were cleaned up. I would like to schedule the branch cleanup to occur during the day, but I can't find anywhere to configure the schedule. I have changed the Expiry schedule to occur during the day but that does not seem to affect the branch cleanup schedule. Is it possible to configure the branch cleanup schedule?
We're running Bamboo 6.10.3
Thanks
Try to use this system property https://docs.atlassian.com/atlassian-bamboo/6.10.3/com/atlassian/bamboo/utils/SystemProperty.html#BRANCH_EXPIRY_SCHEDULED_TIME
Hi,
I added this property to JVM_SUPPORT_RECOMMENDED_ARGS in bin/setenv.sh and it worked perfectly. Thank you very much.
: ${JVM_SUPPORT_RECOMMENDED_ARGS:="-Duser.timezone=America/New_York -Dbamboo.branch.expiry.schedule="20:00""}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.