sonarqube-scan

Export custom sonarqube report

若如初见. 提交于 2019-12-12 04:56:55
问题 Basically, what I want to achieve is very similar to this post However, the links in the answer are no longer available. I'm very new to sonar, just set up the server and run some analysis example. I've been searching hours on how to export the test result rather than view it on the web. Any guidance? UPDATE: I DON'T WANT PDF FILE 回答1: Since you simply want raw data, to be formatted and displayed elsewhere, then what you're looking for is the web services. I've linked to SonarCloud, but you

How to configure multi-module Maven + Sonar + JaCoCo to get overall coverage report in Sonar?

江枫思渺然 提交于 2019-12-12 03:33:26
问题 From the past one week I am trying to get code coverage of my multi module project using Sonar. My project structure is as follows. Web Service XYX +- pom.xml +-SubFOlder +- Module 1 +- pom.xml +- Module 2 +- pom.xml +- Module3 +- pom.xml Means I have one folder in my directory and inside that I have all my sub modules. am able to generate a jacoco.exec file in all the sub modules target directory. Want to know the way to combine all these submodules jacoco.exec so that I can get a merged

How can one turn off sonar analyser but still get coverage report?

拜拜、爱过 提交于 2019-12-11 18:07:31
问题 It has been cleared here that from Sonarqube version 6.2 that coverage reports are merged and there won't be separate unit and integration coverage report anymore. We still interested to have these two coverage reports separately. So, We have three sonar projects: unit-tests, integration-tests, whole-project(which is responsible to create overall coverage report) Problem: All source files are analysed in all three projects. Since the number of files are too many, it takes several minutes to

SonarQube Scanner execution fails: java can't be indexed twice

元气小坏坏 提交于 2019-12-11 17:07:17
问题 I am working with: sonarqube 7.3 scanner 3.2.0.1227 I have a Gradle multi module sonarqube-03 sonarqube-03-domain sonarqube-03-repository sonarqube-03-repository-impl I have just one sonar-project.properties file located in the root project sonarqube-03 with the following content: # must be unique in a given SonarQube instance sonar.projectKey=manolito-labs:sonarqube-03 # this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. sonar.projectName

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

How to force code coverage to Zero?

元气小坏坏 提交于 2019-12-11 16:38:32
问题 I have several java projects with no unit test cases. When I try to analyse these projects using SonarQube I am unable to get unit test code coverage because it doesn't have any test cases. As per my research I saw that I can force it to show it as zero if there are no unit test cases. The official Jacoco Java documentation mentions sonar.jacoco.reportMissing.force.zero=true . My SonarQube analysis will be done using maven builds and SonarQube 5.6.6 and sonar-java 4.11.0.10660. How can I set

Jenkins: Running Scanner for MSBuild under Local System or Network Service account is not supported

社会主义新天地 提交于 2019-12-11 13:17:49
问题 I want to integrate SonarQube with a Jenkins project (ASP.NET project). I am trying to build a Jenkins job containing a build step for "SonarScanner for MSBuild " begin/end analysis. But I get the following error: " Running the Scanner for MSBuild under Local System or Network Service account is not supported. Please, use a local or domain user account instead. " I even tried removing the "SonarScanner for MSBuild " begin/end analysis steps and manually executing Windows batch commands (which

sonar.profile is deprecated for 4.5.4 Sonarqube

旧街凉风 提交于 2019-12-11 12:57:02
问题 I am using sonarqube 4.5.4,and hence the sonar.profile is deprecated for the sonar version of 4.5.4,Please suggest what alternative tag can be used for the same. Regards, Namratha 回答1: There's no replacement for this property. Instead, make your project-profile associations via the UI. 来源: https://stackoverflow.com/questions/37831982/sonar-profile-is-deprecated-for-4-5-4-sonarqube

Why SONAR fails at waitForQualityGate() with error 401?

房东的猫 提交于 2019-12-11 08:39:59
问题 Using pipeline code, stage ('SonarQube') { withSonarQubeEnv { dir ('mydir/') { sh "'${mvnHome}/bin/mvn' sonar:sonar -Dsonar.login=something -Dsonar.projectKey=someproj -Dsonar.projectName=somename" } } timeout(time: 15, unit: 'MINUTES') { def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } } Which progresses crrectly over the first mvn section and breaks on waitforqualitygate() operation: org.sonarqube.ws.client

StashIssueReportingPostJob not enabled - how to enable?

送分小仙女□ 提交于 2019-12-11 07:06:50
问题 using the AmadeusIT sonar-stash plugin... After branching from main for feature/sprint we updated code locally and added, committed and pushed to BitBucket, creating a pull request. We'd like to run a scan and see the issues presently only for the code we just issued a PR for... I run sonar-scanner with this invocation: sonar-scanner -Dsonar.analysis.mode=preview -Dsonar.stash.pullrequest.id=8 - Dsonar.stash.repository=StaticAnalysisPOC -Dsonar.stash.login=myLogin - Dsonar.stash.password