sonarqube-scan

Sonar scanner issue in jenkins

纵饮孤独 提交于 2019-12-08 08:34:52
问题 I am trying to integrate sonar with Jenkins in my local, when integrating the build is successfully and execution is success, but it is not getting finished success, it show below error and it show out of memory INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/al-config-server INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://localhost:9000

How to execute SonarQube scanner in Jenkins Declarative Pipeline without Maven and Docker

断了今生、忘了曾经 提交于 2019-12-08 06:22:11
问题 Does SonarQube scanner support BlueOcean pipeline plugin without maven and docker, if it does how does the script works in Jenkinsfile? I'm new to Jenkins and BlueOcean and have tried all the basic possible aspects available. If the SonarQube plugin did support Declarative: pipeline { agent any stages { stage('SonarQube analysis') { tools { sonarQube 'SonarQube Scanner 2.8' } steps { withSonarQubeEnv('SonarQube Scanner') { sh 'sonar-scanner' } } } } } 回答1: We cannot say that the SonarQube

How To Use The Sonar Maven Plug-in

断了今生、忘了曾经 提交于 2019-12-08 06:19:05
问题 Easy question here. I want to add sonar to be executed on every Maven build. I tried: <plugin> <groupId>org.sonarsource.scanner.maven</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>3.1.1</version> </plugin> and <plugin> <groupId>org.codehaus.sonar</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>5.1</version> </plugin> and <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>2.7.1</version> </plugin> because a) I

Sonarqube vsts task exception on coverage for .net core 2 app

安稳与你 提交于 2019-12-08 05:04:41
问题 I believe this is more a bug report than a support question, but may be i can workaround it. I am building & testing a .net core 2 app: the vstest step is configured as below: A trx file and a binary .coverage files are produced. If Code coverage checkbox is disabled, build works. If enabled like in the picture it fails with the following error: SonarQube Scanner for MSBuild 3.0.2 Default properties file was found at C:\agent\_work\_tasks\SonarQubeScannerMsBuildBegin_15b84ca1-b62f-4a2a-a403

Sonarqube C# scanner exception: “java.lang.IllegalArgumentException: is not a valid line offset for pointer”

穿精又带淫゛_ 提交于 2019-12-08 02:43:58
问题 Does anyone know what's going on here? Using Sonarqube v5.6 on a windows server, c# scanner v5.5.0.479 Seems to pick this up in multiple files, and not always the same files, which is the most concerning. Anyone have any ideas? 16:46:03 INFO: Importing analysis results from E:\Jenkins\workspace\Job Build-UnitTest (PullRequests)\.sonar\output-cs 16:46:05 INFO: ------------------------------------------------------------------------ 16:46:05 INFO: EXECUTION FAILURE 16:46:05 INFO: --------------

Running sonar-scanner from setup.py

≡放荡痞女 提交于 2019-12-07 18:44:08
问题 I am using sonarqube/soanrpython on windows to analyse my python code and would like to be able to initiate the scan using setuptools instead of calling the scanner from the DOS prompt. Is this possible?. I have searched the web and cannot find anything. I call the scanner using the following command C:> sonar-scanner -Dsonar.projectKey=TL:python -Dsonar.sources=mypackage But would like to be able to call C:> python setup.py sonar Or something similar Edit: To get this to work I put the

Sonarqube C# MsBuild Access denied

ぃ、小莉子 提交于 2019-12-07 13:18:42
问题 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):

Sonar Runner:- INFO: Could not resolve file paths

孤街醉人 提交于 2019-12-07 11:33:53
问题 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

Jenkins Script Pipeline sonar Integration

你说的曾经没有我的故事 提交于 2019-12-07 10:26:16
问题 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

Sonarqube C# scanner exception: “java.lang.IllegalArgumentException: is not a valid line offset for pointer”

断了今生、忘了曾经 提交于 2019-12-06 14:03:59
Does anyone know what's going on here? Using Sonarqube v5.6 on a windows server, c# scanner v5.5.0.479 Seems to pick this up in multiple files, and not always the same files, which is the most concerning. Anyone have any ideas? 16:46:03 INFO: Importing analysis results from E:\Jenkins\workspace\Job Build-UnitTest (PullRequests)\.sonar\output-cs 16:46:05 INFO: ------------------------------------------------------------------------ 16:46:05 INFO: EXECUTION FAILURE 16:46:05 INFO: ------------------------------------------------------------------------ 16:46:05 INFO: Total time: 3:36.304s 16:46