# Sonar-runner doesn't run

**URL:** <https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636>\
**Category:** Old Forum Archive\
**Created:** [October 1, 2013, 10:36am UTC](https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636 "2013-10-01T10:36:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sason\_Ohanian](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sason\_Ohanian](https://discuss.gradle.org/u/Sason_Ohanian)\
**Post date:** [October 1, 2013, 10:36am UTC](https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636/1 "2013-10-01T10:36:00Z")

</div>

Hi! I’ve applied the sonar-runner plugin to the root project of my multi project build. When i run sonar-runner the task is never executed. Could it be because I have failing tests? I’m running it with --continue. If this is the case, can I somehow force the sonnarRunner to execute even when tests fail?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [October 1, 2013, 10:55am UTC](https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636/2 "2013-10-01T10:55:00Z")

</div>

Currently, the best way to make sure that Sonar Runner runs despite previous failures is to either set ‘test.ignoreFailures = true’, or to undo the task dependencies set by the Sonar Runner plugin (‘tasks.sonarRunner.dependsOn = []’) and then run ‘gradle test sonarRunner --continue’. It’s a known issue and there is already a JIRA for it.

---

<div class="post-metadata">

**Author:** ![Sason\_Ohanian](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Sason\_Ohanian](https://discuss.gradle.org/u/Sason_Ohanian)\
**Post date:** [October 1, 2013, 11:49am UTC](https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636/3 "2013-10-01T11:49:00Z")

</div>

Thanks! It seems to work. Though the sonarRunner seems to crash every time I run it. I get the following error:

13:06:12.001 INFO - Findbugs output report: C:\path\to\rootproject\gradleBuild\sonar\se.extenda.stdp bugs-result.xml 13:10:05.687 WARN - [JOURNAL\_FLUSHER] WARNING Journal flush operation took 8,688ms last 8 cycles average is 1,086ms 13:16:32.984 ERROR - Unable to cancel semaphore updater in 1 second ----- End of the daemon log -----

FAILURE: Build failed with an exception.

- What went wrong: Gradle build daemon disappeared unexpectedly (it may have been stopped, killed or may have crashed)

- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. \> Building \> :sonarRunner

Any ideas on whats going on?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [October 1, 2013, 12:38pm UTC](https://discuss.gradle.org/t/sonar-runner-doesnt-run/5636/4 "2013-10-01T12:38:00Z")

</div>

> Any ideas on whats going on?

Not without more information, Perhaps the process is running out of memory. On a side note, I don’t recommend to use the Gradle daemon for running Sonar analysis (or CI jobs in general).
