sonar-runner

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

和自甴很熟 提交于 2019-12-01 00:38:50
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 person informs via email, that he changed the file and all others need to download it 3) The others

MSBuild SonarQube runner in command line

不想你离开。 提交于 2019-11-30 21:30:47
问题 I have a problem analyzing a project using MSBuild SonarQube runner. SonarQube database and server are up and running, i have tried to analyze an example project and it all went well. But when i try to analyze my project something goes wrong. The analysis completes with no errors but no analysis data is saved to database, no issues, no lines of code count, nothing. Anyone has any idea of what could be wrong? EDIT: sonar-project.properties: sonar.projectKey=shrooms sonar.projectName=Shrooms

How to integrate Sonar Quality Gates with Gitlab-CI

对着背影说爱祢 提交于 2019-11-30 10:38:48
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 ? 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 Step 2 4.If it is FAILED, break the build (Here failure is unable to generate sonar report) 5.If successful

Does Sonar support multiple language in same project?

那年仲夏 提交于 2019-11-29 22:53:45
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 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 If you are using Sonar version 3.4. Then I have written a new maven plugin to help you with multiple

Do I need sonar and sonar runner for Jenkins?

女生的网名这么多〃 提交于 2019-11-28 06:45:35
I want to set up Sonar with Jenkins. But I'm not sure if the Sonar site describes two different ways to do this or if there are two necessary steps: As far as I understood it, it's two different ways. If this is the case, what is the difference and what are the advantages and disadvantages (between the Sonar itself and Sonar runner)? Fabrice - SonarSource Team If you want to analyse a project with SonarQube and Jenkins, here's what you need: A SonarQube server up and running A Jenkins server up and running with the SonarQube Scanner for Jenkins installed and configure to point to your

Do I need sonar and sonar runner for Jenkins?

北城以北 提交于 2019-11-27 01:28:52
问题 I want to set up Sonar with Jenkins. But I'm not sure if the Sonar site describes two different ways to do this or if there are two necessary steps: As far as I understood it, it's two different ways. If this is the case, what is the difference and what are the advantages and disadvantages (between the Sonar itself and Sonar runner)? 回答1: If you want to analyse a project with SonarQube and Jenkins, here's what you need: A SonarQube server up and running A Jenkins server up and running with