Search code examples
mavensonarqubeibm-jazz

SonarQube Maven plugin: Jazz annotate Timeout exceeded


When running the SonarQube Maven plugin to get blame information from an RTC project I am hitting a timeout. I tried changing the repository.timeout property in .jazz-scm/preferences.properties to 900 but the timeout still shows as 60000ms.

At this point I'm not sure whether this is lscm timing out or Sonar itself.

The error:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-
plugin:3.0.2:sonar (default-cli) on project app: The jazz annotate command 
[sh lscm annotate -u pviana@foo.com -P ******** pom.xml] timed out: 
Timeout exceeded: 60000 ms [command: sh lscm annotate -u pviana@foo.com 
-P ******** pom.xml]: TimeoutException -> [Help 1]

Solution

  • The timeout is currently hardcoded to 60s. Feel free to submit a pull request to make it configurable. But still I think that spending more than 1 min to blame a single file probably reveal a performance issue.