Branches housekeeping not working

Hello,

I have a sonarqube version 10.6 community edition.
We have the setting " Number of days before purging inactive branches and pull requests " set to 30

However, the branches and PRs on project level are never deleted

Do you have any idea why this is happening?

Thanks,
Cindy

Hey there.

Housekeeping only kicks in when a project is analyzed – there’s no process in the background waiting for the right amount of time to pass. On new project analysis (of any branch), your old branches / PRs will be cleaned up!

Hi,

Welcome to the community!

Only the latest version of SonarQube Community Build is considered active, so you’ll need to upgrade and see if the situation is still replicable before we can help you.

Your upgrade path is:

10.6 → 25.3

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

I dont see a 25.3 version

and even when there is a new project analysis, old branches are not scanned

Hey @cindy-rahbani

If you have a screenshot like before where a new analysis hasn’t triggered the cleanup, I’d love to see it! But this screenshot just shows analyses done 11 months to a year ago.

You’re looking for the SonarQube Community Build docs, which aren’t versioned.