Skip to content

SonarQube Housekeeping

Branches and Pull Requests

Type Description Metric
Number of days before purging inactive branches and pull requests Branches and pull requests are permanently deleted when there has been no analysis for the configured number of days. 30
Branches to keep when inactive By default, branches and pull requests are automatically deleted when inactive. This setting allows you to protect branches (but not pull requests) from this deletion. When a branch is created with a name that matches any of the regular expressions on the list of values of this setting, the branch will not be deleted automatically even when it becomes inactive. master, develop, main, project/., release/.

General

Type Description Metric
Keep only one analysis a day after After this number of hours, if there are several analyses during the same day, the DbCleaner keeps the most recent one and fully deletes the other ones. 24
Keep only one analysis a week after After this number of weeks, if there are several analyses during the same week, the DbCleaner keeps the most recent one and fully deletes the other ones 4
Keep only one analysis a month after After this number of weeks, if there are several analyses during the same month, the DbCleaner keeps the most recent one and fully deletes the other ones. 52
Keep only analyses with a version event after After this number of weeks, the DbCleaner keeps only analyses with a version event associated. 104
Delete all analyses after After this number of weeks, all analyses are fully deleted. 260
Delete closed issues after Issues that have been closed for more than this number of days will be deleted. 30