Must-share information (formatted with Markdown):
- which versions are you using
- Enterprise Edition v9.9.6 (build 92038)
- how is SonarQube deployed:
- Docker
- what are you trying to achieve
- what have you tried so far to achieve this
Dear Support,
We ran into a problem after upgrading the dotnet-sonarscanner to the latest v8.
It introduces fantastic new features. However, after we unconsciously upgraded, we realised we were not ready. (dotnet tool install -g dotnet-sonarscanner
with no --version
)
It started to scan XML in our dependencies and consumed the license.
We have downgraded to 7.1.1, and now we need to clean up the analysis consuming the license.
The LOCs that are counted are those found on the largest branch of the project.
– Calculating lines of code
I have read this thread How to delete the latest activity from SonarQube project?. I understand I need to run a fresh analysis to remove the older one.
However, we run sonar on branches and pull requests, and cherry-picking seems tedious.
What would be the most efficient way to remove analysis consuming our license?
It can be manual UI steps or API.
Thank you,
Przemek
UPDATE
I ran {{baseUrl}}/api/ce/activity?ps=1000
, and it looks like I have 475 analyses to review. There must be a better way.