Replay Sonar shortliving branch analysis on an existing branch

sonarqube
branches

(Christian Reibel) #1

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.host.url=http://sonarserver.com -Dsonar.login=token -Dsonar.branch.name=1-implementnewfeature -Dsonar.gitlab.project_id=com.company:project -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

BR
Christian


(G Ann Campbell) #2

Hi Christian,

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

 
Thx,
Ann