Sonarcloud: Results not shown despite successful travis build

(Björn Meschede) #1


I just tried to integrate sonarcloud with travis-ci in our sonarQuest project (, but despite a successful build in travis somehow the results are not shown at

The travis-file:

The travis build log lists no errors and features the SonarCloud-addon:

But the results are not shown on

Right now the only way to push results is to do it manually by running the maven build locally (which is how the existing two results were created).

Any ideas why this is not working?

Thanks in advance!

(Evgeny Mandrikov) #2

In your build log you can notice that

mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar

is not executed. Most likely this is because you have two spaces in front of before_script: and script:

(Björn Meschede) #3

Thanks a lot! That explains and as well fixes this problem.

How was that? “I thought we had tested everything …well, with the exception of whitespaces…”