sonar-runner

Unable to execute Sonar after sonar-java-plugin 4.0 upgrade

旧城冷巷雨未停 提交于 2019-12-11 17:45:32
问题 After upgrading SonarQube from 5.5 to 5.6.5 our Gradle build worked as expected until the SonarJava plugin was updated. We updated from 3.13.1 to 4.x (I tried 4.0, 4.8, and 4.9). I had to 'down grade' the plugin back to 3.13.1 for the build to pass. The main reason we upgraded the SonarQube server was so the developers could use SonarLint and SonarJava v4.0 is a minimum requirement. The error I get is: ERROR: Caused by: sonar.binaries and sonar.libraries are not supported since version 4.0 of

Analyze iOS/Swift mobile apps with SonarQube

假如想象 提交于 2019-12-11 16:48:12
问题 Well, in my company we develop some projects with some languages. Now we are migrating all from SVN to GitLab and we started to use Jenkins and SonarQube with Ubuntu Server for CI. All is fine with Java projects (everything runs with linux slaves), but now we wanna use SonarQube to analyze app with Objective-C and Swift. To analyze the projects (mobile apps) we gonna buy the developer edition to use Swift and Objective-C plugins (open source plugins are discarded). So, my question is, we need

TFS Build ignores configured Code Analysis ruleset

本秂侑毒 提交于 2019-12-11 13:35:05
问题 I have a solution that is using an hybrid .csproj and project.json combination (for nuget management purposes). So basically the "project.json" file is working as a "packages.config" file with a floating version capability. This solution is using a custom RuleSet that is being distributed via Package, and is imported automatically. On the dev machine, works without a problem. At the build machine (that is, inside the machine itself, working as an user) the solution also compiles without a

Sonar Ant task execution error

放肆的年华 提交于 2019-12-11 10:49:54
问题 I wrote the ant sonar task but when i am executing in the console i am getting following error E:\Liferay\Liferay 6.2\workspace\plugins\build.xml:305: org.sonar.batch.bootstrapper.BootstrapException: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:9000/sonar/batch/ Even i have tried in all the ways The following is my ant target <target name="sonar"> <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"> <!-- Update the following line,

Sonar launch error

最后都变了- 提交于 2019-12-11 09:50:17
问题 I am facing the below error when i try to start the sonar by using a mysql. Do i need to modify any details in the sonar.properties file with respect to the elastic configurations ? Has anyone face a similar error before ? 014.12.15 21:38:49 WARN sea[o.e.transport.netty] [sonar-1418659692862] exception caught on transport layer [[id: ,9001]], closing connection java.io.StreamCorruptedException: invalid internal transport message format at org. elasticsearch.transport.netty

Own Sonar Plugin - How to set the Language?

旧巷老猫 提交于 2019-12-11 01:54:58
问题 I'm relative new to Sonar - especially to writing my own Sonar Plugin. After some successful trials, I got stuck now. I have written a simple Plugin which only should transfer source files (*.abap -Files) to the sonar server. and in my plugin I have an AbapLangauge (extended from AbstractLangauge) package sonarplugin; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.resources.AbstractLanguage; public class AbapLanguage

sonarqube 5.2 background tasks sometimes fail with no log

故事扮演 提交于 2019-12-10 19:22:42
问题 It seems that over half of the time I try to execute analysis using Sonar Runner 2.4 on several different projects that the analysis completes successfully but the publish (via the background task) to SonarQube fails. There is no log that I can find with relevant information on the SonarQube server for the failed tasks - at least I can't find any. I am new to SonarQube. The SonarQube 5.2 server is on Windows Server 2012 R2 using SQL Server 2012(SP1) database. 回答1: The answer is the solution

Unable to execute Sonar: Caused by: Java heap space

走远了吗. 提交于 2019-12-10 16:15:31
问题 I am using Sonar Runner 2.2 and set SONAR_RUNNER_OPTS=-Xmx8000m , but I am getting the following error: Final Memory: 17M/5389M INFO: ------------------------------------------------------------------------ ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Java heap space How can this be? 回答1: I had the same problem and found a very different solution, perhaps because I don't believe any of the previous answers / comments. With 10 million lines of

Insufficient privileges error with sonarRunner

别说谁变了你拦得住时间么 提交于 2019-12-10 14:15:32
问题 I am getting Insufficient privileges error running sonar. This started happening after I upgraded sonarQube to 5.0. ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: Fail to decorate 'org.sonar.api.resources.File@152f931e[key=........]' ERROR: Caused by: {"errors":[{"msg":"Insufficient privileges"}]} For the existing projects, I renamed the key and now I have new sonar projects. Those seems to be working fine for now. The new projects that are created

sonar.coverage.exclusions and sonar.exclusions does not exclude the files from

て烟熏妆下的殇ゞ 提交于 2019-12-10 12:03:56
问题 I already went through : Configure Sonar to exclude files from Maven pom.xml and still SonarLint is unable to execlude those all files. Any help is much appreciated <properties> <java.version>1.8</java.version> <sonar.coverage.exclusions> **/dto/**/*, **/entity/**/*, **/exception/**/*, **/repository/**/*, **/enums/**/*, **/assembler/**/*, **/src/main/resources/sql/**/*, **/controller/**/*, **/utils/**/*, **/security/**/*, **/servlet/**/*, **/MainApplication.java </sonar.coverage.exclusions>