sonar-runner

Read timed out on /batch/project (SonarQube 4.5)

百般思念 提交于 2019-12-30 08:33:23
问题 I am struggling with the following problem. Log of the executed when sonar-runner in Jenkins. SonarQube Runner 2.4 Java 1.7.0_67 Oracle Corporation (64-bit) Windows 7 6.1 amd64 SONAR_RUNNER_OPTS=-Xms256m -Xmx512m INFO: Runner configuration file: D:\CI_BUILD\sonar-runner-2.4\conf\sonar-runner.properties INFO: Project configuration file: NONE INFO: Default locale: "ko_KR", source code encoding: "UTF-8" INFO: Work directory: D:\CI_BUILD\jenkins_home\jobs\CAFE-CLIENT\workspace\.sonar INFO:

Getting remote config file for SonarLint if online, using local if offline

↘锁芯ラ 提交于 2019-12-30 07:23:06
问题 Current My company is currently using checkstyle and findbugs scripts to measure their code quality. I am the one to imigrate those settings into a new SonarQube driven environment. I came to a point when I started wondering, if it was possible, to look the remote config settings of the running SonarQube server up and update the local settings accordingly. Right now, with checkstyle and findbugs it is like this: 1) someone changes the config xml file and uploads it to the server 2) the same

How to integrate Sonar Quality Gates with Gitlab-CI

不羁岁月 提交于 2019-12-30 03:42:07
问题 I have a gitlab-ci integration that require a sonar analysis and if the quality gates pass, to build a docker image. Is this possible using gitlab-ci ? 回答1: To break the CI build for a failed Quality Gate, 1.Search in /report-task.txt the values of the CE Task URL (ceTaskUrl) and CE Task Id (ceTaskId) 2.Call /api/ce/task?id=XXX where XXX is the CE Task Id retrieved from step 1 Ex:- https:///api/ce/task?id=Your ceTaskId 3.Wait for sometime until the status is SUCCESS, CANCELED or FAILED from

Exclude packages from Jacoco report using Sonarrunner and Gradle

雨燕双飞 提交于 2019-12-29 08:33:09
问题 Is there a way to exclude packages from SonarQube(instrumented by gradle + sonar-runner) coverage reports(generated by jacoco) without excluding them completely from the project ? Below is what i tried so far: Version information SonarQube 4.5.1 Gradle 2.2. Jacoco configuration // JaCoCo test coverage configuration tasks.withType(Test) { task -> jacoco { append = false // excluded classes from coverage defined in above configuration excludes = excludedClasses() } jacocoTestReport { doFirst {

Class 'XXX/XXX/XXX ' is not accessible through the ClassLoader warning in Sonar analysis with Jenkins build and maven project

纵饮孤独 提交于 2019-12-25 07:22:45
问题 I know it's recurent question but I couldn't find a solution to my issue. In JENKINS , I run a SONAR analysis after the build. When Soanar gets to Java bytecode scan... it displays : WARN - Class '.../.../.../...' is not accessible through the ClassLoader . The scan is on a Maven project, and Sonar keeps displayin this message throw many other classes that uses Maven dependancies . The Sonar analysis is using the SONAR-RUNNER . I saw in many posts, that the issue could be fixed by adding

Tasks are no more supported on batch side since SonarQube 5.2

混江龙づ霸主 提交于 2019-12-24 00:43:51
问题 I install SonarQube 5.2 and Sonar-runner 2.4 (latest versions). I managed to start SonarQube but I get the following error when trying to run Sonar-runner: ERROR: Unable to execute Sonar ERROR: Caused by: Tasks are no more supported on batch side since SonarQube 5.2 ERROR: EDIT: The following exception is thrown when I run the command with --debug ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1

How to set FxCop installation path using SonarQube's C# plugin

限于喜欢 提交于 2019-12-23 20:24:12
问题 I'm trying to analyze .NET C# project using SonarQube C# plugin. From C# Plugin 3.0, FxCop is automatically executed even thogh "sonar.fxcop.mode=skip" in sonar-project.properties, so I installed FxCop to following directory. C:\Program Files (x86)\Microsoft FxCop 1.35 When I ran SonarQube Runner from Jenkins's sonar plugin, then I got following error. ERROR: Error during Sonar runner execution ERROR: Unable to execute Sonar ERROR: Caused by: The property "sonar.cs.fxcop.assembly" must be set

Sonarqube error java.lang.ClassCastException: org.sonar.java.resolve.SemanticModel cannot be cast to org.sonar.java.resolve.SemanticModel

落花浮王杯 提交于 2019-12-23 12:34:21
问题 Hi I wrote own plugin for sonar 5.1.2 based on some checks from java-web-plugin 3.5 (dependency in pom for java-checks 3.5) and when I try to run analysis on project i get error: Caused by: java.lang.ClassCastException: org.sonar.java.resolve.SemanticModel cannot be cast to org.sonar.java.resolve.SemanticModel at org.sonar.java.checks.SubscriptionBaseVisitor.scanFile(SubscriptionBaseVisitor.java:32) at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:123) at org.sonar.java

SonarQube 6.2 upgrade to 6.4 Missing projects and users

大城市里の小女人 提交于 2019-12-23 10:19:20
问题 On Debian Jessie I had an installed version of SonarQube 6.2 using Postgresql (latest on Jessie ) Java 8 installed I went through the upgrade process (to v. 6.4)Here When it came back online all the projects were missing. I can get to them by manually typing in the URL to the project like: https://[address of server]/dashboard?id=[Name of Project] Also the in the user admin section (Administration>Security>Users) I see no users. However if I go to groups (Administration>Security>Groups) my

SonarQube 6.2 upgrade to 6.4 Missing projects and users

走远了吗. 提交于 2019-12-23 10:17:17
问题 On Debian Jessie I had an installed version of SonarQube 6.2 using Postgresql (latest on Jessie ) Java 8 installed I went through the upgrade process (to v. 6.4)Here When it came back online all the projects were missing. I can get to them by manually typing in the URL to the project like: https://[address of server]/dashboard?id=[Name of Project] Also the in the user admin section (Administration>Security>Users) I see no users. However if I go to groups (Administration>Security>Groups) my