Hi @Akash_Dwivedi,
Why do you want to keep all analysis for main/release branch ?
You may found found some explanation in this topic Keep analyses and everything else forever (turn off dbcleaner) possible? - #4 by ganncamp
And the description of these parameters from the SonarQube user interface :
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.
Key: sonar.dbcleaner.hoursBeforeKeepingOnlyOneSnapshotByDay
Default : 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
Key: sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByWeek
Default : 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.
Key: sonar.dbcleaner.weeksBeforeKeepingOnlyOneSnapshotByMonth
Default : 52
Keep only analyses with a version event after
After this number of weeks, the DbCleaner keeps only analyses with a version event associated.
Key: sonar.dbcleaner.weeksBeforeKeepingOnlyAnalysesWithVersion
Default : 104
Delete all analyses after
After this number of weeks, all analyses are fully deleted.
Key: sonar.dbcleaner.weeksBeforeDeletingAllSnapshots
Default : 260
Delete closed issues after
Issues that have been closed for more than this number of days will be deleted.
Key: sonar.dbcleaner.daysBeforeDeletingClosedIssues
Default : 30