Replay Sonar shortliving branch analysis on an existing branch

Hi together,

we would like to analyse existing short living branches which have already been created weeks ago. My Idea was to checkout the first commit in the branch and analyse this one with a sonar call like this:

mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Dmaven.test.failure.ignore=true sonar:sonar -Dsonar.login=token -Dsonar.projectDate=2018-12-01

As I provide the projectDate parameter, I would expect, that I can add an old analysis. This works. But when I afterwards analyse the latest commit of the branch, the meassurement of the code coverage is not working. Do you have an idea how to analyse existing branches?

We are using Sonarqube Devbeloper Edition Version 7.4


Hi Christian,

Can you give details (screenshots?) on “not working”?