sonarqube-scan

Unable to see sonarqube analysis in sonarqube server after build success

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 12:48:29
问题 When I tried to analyze a java program using maven for SonarQube 5.6 analysis I am unable to see analysis result on dashboard. I added all the plugins and build steps in my pom.xml and executed mvn clean deploy . Nevertheless my build shows success but the analysis is not posting on SonarQube server and in background task it shows failed (in SonarQube server web UI) My pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Sonar is showing new violations in old code

淺唱寂寞╮ 提交于 2019-12-06 12:26:46
We are using Sonar Qube 6.7.3 and sonar-java-plugin 5.3 We have made below changes to our sonar configuration recently Enabled new rules Changed configuration to include byte code(changed from 'clean sonar:sonar' to 'clean package sonar:sonar') We are using sonar svn plugin and provide valid credentials to it. I understand providing byte code to sonar will help it identify more issues but, I expect Sonar to flag new issues based on svn code commit date and last analysis date, but it is not . Please let me know why it is flagging issues in old code as new? agabrys Sonar Sanner always scans the

Sonarqube C# MsBuild Access denied

拥有回忆 提交于 2019-12-05 23:46:02
I have a Sonarqube (6.7.1) server with SonarC# (6.7.1) which is build by Bitnami Google Cloud Platform. and I followed the tutorial: https://docs.sonarqube.org/display/SCAN/Scanning+on+Linux+or+macOS created a new and empty project 'ConsoleApp1' However in the last step: mono ~/Tools/ScannerMSBuild/SonarQube.Scanner.MSBuild.exe end /d:sonar.login=XYZ It will popup an exception: Calling the SonarQube Scanner... Unhandled Exception: System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/magic/Documents/Projects/services/sonar-scanner-msbuild/sonar-scanner-3.0.3.778/bin/sonar

Sonar Runner:- INFO: Could not resolve file paths

烂漫一生 提交于 2019-12-05 14:46:04
I am trying to run Sonar Runner through CMD Line and want to scan all data through my Lcov file but after Running sonar Runner and it's showing Error in reading file .I crossed checked each and every path mentioned in file manually and its working fine.But still It's giving me the error as below:- >INFO: Integration Test Coverage Sensor is started INFO: Overall Coverage Sensor is started INFO: Analysing [C:\Tests\lcov.dat] INFO: Could not resolve 67 file paths in [C:\Trunk\lcov.dat], first unr esolved path: C:\Trunk\Web\App_Themes\Core\AppStart\UserAuth.js" I tried to run my Runner as below:-

Jenkins Script Pipeline sonar Integration

孤街浪徒 提交于 2019-12-05 14:12:49
i'd like to start a Sonar project analysis with Jenkins 2.x Groovy Script Build Pipeline. I have sonar configured in Maven so thats no big deal: withEnv(["JAVA_HOME=${javaHome}", "PATH + MAVEN=${mavenHome}/bin:${env.JAVA_HOME}/bin", "MAVEN_OPTS=${mavenOpts}"]) { sh 'mvn -B sonar:sonar' } But how can i get results from sonar ? Or even better how can i determine if a quality gate was achived so that i can stop the build-pipeline. The build breaker concept is obsolet since some versione of sonar, as far as i know. Or how would you handle this. I still think it would be a good idea to stop/pause a

Sonar scanner with Maven and JDK 11

[亡魂溺海] 提交于 2019-12-05 10:23:28
I can make Sonar scanner work with OpenJDK 8 but not with OpenJDK 11. The Maven command used is: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent verify sonar:sonar -Dsonar.analysis.mode=preview -Dsonar.report.export.path=sonar-report.json -P ci The build fails with: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar (default-cli) on project framework-bio: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.4.0.905:sonar failed: A required class was missing while executing org.sonarsource.scanner.maven:sonar-maven

tmatesoft.svn.core.SVNAuthenticationException: svn: E170001

有些话、适合烂在心里 提交于 2019-12-05 09:29:04
We are working n a legacy project (maven) to setup devop. Starter with jenkins. Jenkins build is now without issues. But, while integrating sonarqube with jenkins, we are getting the following error: ERROR: Error during SonarQube Scanner execution java.lang.IllegalStateException: Error when executing blame for file src/main/java/com/acme/acq/scavenger/AssetCmboItem.java at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:100) at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:59) at org.sonar.batch.scm.ScmSensor.execute(ScmSensor.java:84) at org.sonar

What is the difference between jacoco branch coverage and Sonar condition coverage?

痞子三分冷 提交于 2019-12-05 02:35:40
问题 I'm trying to analyze java code with the SonarQube Scanner (version 3.1.0.1141). SonarQube version : 5.6.6 Sonar Java plugin version : 4.12.0.11033 jacoco version : 0.8.0 I have filled the sonar-project.properties with those properties : # Sonar sources and metadata sonar.language=java sonar.sources=src/main sonar.java.source=1.8 sonar.sourceEncoding=UTF-8 sonar.java.binaries=target/classes sonar.java.libraries=target/lib sonar.tests=src/test sonar.java.coveragePlugin=jacoco sonar.junit

Unable to see sonarqube analysis in sonarqube server after build success

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 19:19:19
When I tried to analyze a java program using maven for SonarQube 5.6 analysis I am unable to see analysis result on dashboard. I added all the plugins and build steps in my pom.xml and executed mvn clean deploy . Nevertheless my build shows success but the analysis is not posting on SonarQube server and in background task it shows failed (in SonarQube server web UI) My pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion

Error while executing Sonarqube analysis “ Insufficient privileges”

点点圈 提交于 2019-12-04 10:47:52
I am trying to analyse java code through sonarqube. We have created a sonarqube server in our local environment and not using sonar cloud. I tried using sonar maven plugin initially form this link Sonar-Maven Plugin However I faced an "Insufficient privileges" error. [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22.185 s [INFO] Finished at: 2017-09-18T13:04:47+10:00 [INFO] Final Memory: 64M/589M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.sonarsource