Sonarcloud: Results not shown despite successful travis build


(Björn Meschede) #1

Hey,

I just tried to integrate sonarcloud with travis-ci in our sonarQuest project (https://github.com/viadee/sonarQuest), but despite a successful build in travis somehow the results are not shown at sonarcloud.io:

The travis-file:

The travis build log lists no errors and features the SonarCloud-addon:
https://travis-ci.org/viadee/sonarQuest/builds/403755145

But the results are not shown on sonarcloud.io:
https://sonarcloud.io/dashboard?id=com.viadee%3AsonarQuest

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!
Björn


(Evgeny Mandrikov) #2

In your build log https://travis-ci.org/viadee/sonarQuest/builds/403755145#L2385 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…”