Cleanup of analysed snapshots of projects

sonarqube

(Anders Grund) #1

Hello,
Would like to cleanup or sonar server, we have pretty many snapshots like:

image
How can we automagic delete all except the latest one ?

/Anders


(G Ann Campbell) #2

Hi Anders,

I don’t recognize what part of the interface that’s a screenshot of. I bring it up because you don’t give us a lot to go on. Are you truly talking about snapshots/analyses of the master branch or is this something to do with branches? If we are talking about analyses of master I’d say the problem is that your project version changes quite frequently. Each time the version string changes, a version event is set on the analysis, and analyses with events aren’t subject to housekeeping. You’ll need to clean up analyses with events manually.

BTW, it looks like you may be using semantic versioning (hard to tell given the crop on your screenshot). If so, you may be interested in the work we’re just starting on MMF-1524.

 
Ann


(Anders Grund) #3

Hello,
Ok, this is from the Projects management,
It’s same project but different snapshot of it or different Feature branches.
Do we have to delete them manually ?
Hm, what is semantic versioning ?
Thanks! Will look into MMF-1524


(G Ann Campbell) #4

Hi,

Yes, you have to delete projects manually.

 
Ann


(Anders Grund) #5

Ok, ,thank you.
Then i now.
Would that be different if we used developer version of sonarqube and branches plugin ?

/Anders


(G Ann Campbell) #6

Hi,

SonarQube is never going to delete projects for you. Nor will it delete long-lived branches. It does clean up short-lived branches and PRs.

 
Ann