sonar-runner

Sonarqube authorization - how to authorize with sonar-maven-plugin when sonar.forceAuthentication is enabled

与世无争的帅哥 提交于 2019-12-21 12:01:06
问题 I've got sonarqube 6.5 with default configs. When sonar.forceAuthentication flag is set to false, I can create and analyse project through command given below. mvn sonar:sonar -Dsonar.host.url=https://mySonarHost/sonar -Dsonar.login=mySonarUserKey When I enable sonar.forceAuthentication parameter (sonar.forceAuthentication=true), I can't analyse project. I always get maven error: [ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on

Sonar - Unable to load component class org.sonar.scanner.scan.ProjectLock

狂风中的少年 提交于 2019-12-21 07:14:02
问题 I have some issues while running Sonar on my netbeans' project. It's not working and i have the following error : C:\Users\remy.fischer\Desktop\NetBeansProjects\NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin>sonar-scanner -Dsonar.projectKey=..... -Dsonar.projectName=... INFO: Scanner configuration file: C:\Users\remy.fischer\Desktop\NetBeansProjects \NetBeansProjects\BinPacking\sonar-scanner-3.0.3.778-windows\bin\..\conf\sonar-s canner.properties INFO: Project root

Error in jenkins during sonar analysis caused by svn blame

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 03:36:35
问题 When i run the jenkins task i get the following error 17:12:49.738 INFO - Sensor SCM Sensor... 17:12:49.847 INFO - SCM provider for this project is: svn 17:12:49.847 INFO - Retrieve SCM blame information... 17:12:49.863 INFO - 843 files to be analyzed INFO: ------------------------------------------------------------------------ INFO: EXECUTION FAILURE INFO: ------------------------------------------------------------------------ Total time: 1:11.026s Final Memory: 31M/214M INFO: ------------

What does the “leak period” mean in sonarQube?

冷暖自知 提交于 2019-12-20 17:39:57
问题 I'm new in SonarQube I started reading documentation but a lot of time a found "The leak period" but I didn't found anything about it can someone explain me what it means. 回答1: Shortly, leak period is time frame (usually since last release), where specified criteria are measured on newly added code. This allows to focus on quality of fresh code and stop the accumulation of technical debt. The "leak" concept is explained in documentation here https://docs.sonarqube.org/display/SONAR/Fixing+the

Where is line based SCM blame information stored?

倾然丶 夕夏残阳落幕 提交于 2019-12-20 05:52:43
问题 I can see line based SCM blame information in UI, but where is it stored and how can I retrieve through web API? I am using Perforce plugin. The issue is that the Perforce plugin finds the blame information from history, and because of that if a user has created a debt in a past branch, it still shows on his name in the current branch analysis. The Perforce plugin does not have any such way to disable looking into history beyond the current branch. I need to find another way to find out, if

Sonar and TFS 2013 : No ProjectInfo.xml files were found

北城余情 提交于 2019-12-19 11:34:38
问题 When I run TFS 2013 with sonar I get the following error: No ProjectInfo.xml files were found. Check that the analysis targets are referenced by the MSBuild projects being built. Message: TF270015: 'SonarQube.MSBuild.Runner.exe' returned an unexpected exit code. Expected '0'; actual '1'. I use : sonarqube-5.1.zip sonar-csharp-plugin-4.0.jar SonarQube.MSBuild.Runner-0.9.zip sonar-runner-dist-2.4.zip I've followed instructions found in "SonarQube Installation Guide for Existing TFS Environment

No sonar-runner option in jenkins?

允我心安 提交于 2019-12-19 08:49:46
问题 I'm looking to install sonarQube on our jenkins server. The documentation i can find tells me to configure sonar-runner in Jenkins --> manage Jenkins --> Configure system however there is no 'sonar runner' option there. There is a 'sonar' option where i configured my sonar server, and the sonar plugin is installed and up to date. How do i get the sonar-runner configuration to show up? (We want the standalone sonar job not the maven on as this is a project without maven.) 回答1: Ok. So, if I

Does Sonar support multiple language in same project?

余生颓废 提交于 2019-12-18 10:39:59
问题 I am setting up Sonar for one of my projects which is a mix of Groovy and Java . I am able to configure the project separately for either of these languages but not together. Is there any way to do this? I tried this sonar.language = java,grvy but didnt work 回答1: UPDATE April 14th, 2014: Starting with SonarQube 4.2, multi-language projects are supported. This automatically happens when sonar.language is not set. See my sample project here: https://github.com/bellingard/multi-language-project

How to use FxCop analysis with the new MsBuild Sonar runner?

拟墨画扇 提交于 2019-12-13 13:52:55
问题 I am trying to migrate from the old Sonar runner to the new MsBuild Sonar runner in a .NET project. The last problem I have is doing the FxCop analysis. If the quality profile in Sonar contains any FxCop rules, I get the following build error: ERROR: Caused by: The property "sonar.cs.fxcop.assembly" must be set and the project must have been built to execute FxCop rules. This property can be automatically set by the Analysis Bootstrapper for Visual Studio Projects plugin, see: http://docs

Sonar-runner not creating database entries

我的未来我决定 提交于 2019-12-13 06:28:05
问题 I am using sonar runner with Jenkins to analyse a PHP project. The analysis seems to work fine and all of the reports are created by sonar-runner, however, the data does not show up on the dashboard. Configuration: sonar.projectKey=$Git_feature_branch sonar.branch=$Git_feature_branch sonar.projectName=XXXXXX sonar.projectVersion=$Git_feature_branch-${BUILD_ID} sonar.projectDescription=PHP Web Sonar Build sonar.sources=${WORKSPACE}/XXXXXX/Bundles sonar.tests=${WORKSPACE}/XXXXXX/Bundles/Bundle1