Questions tagged [sonarqube-5.4]

This is the SonarQube 5.4.x specific tag. Use it in addition to the sonarqube tag if your question is specific to SonarQube 5.4.x — not just 5.x.

SonarQube (formerly Sonar) is a quality management platform focusing on continuous analysis of source code quality.

Information

This tag is specific for the 5.4 version of SonarQube, which was released on the 8th March 2016. See the tag for general SonarQube questions.

Notable changes:

  • New “My Account” space to collect all your data in once place
  • “Execute Analysis” permission can now be granted at the project level
  • OAuth2 support
  • New “Code” page to list and search for the files in your project
  • Server restart from the UI
  • JavaScript and C# plugins embedded by default
  • Cross-module duplication is back!
36 questions
1
vote
1 answer

How do I add user to a specific group based on a condition after they are authenticated in Sonar

I have a custom feature to implement in SonarQube 5.5. I have a plugin which is basically a fork of the Sonar Open ID Plugin to reflect our company's SSO authentication. It is working fine and it uses cookie based authentication to authenticate…
jbdundas
  • 119
  • 1
  • 8
1
vote
3 answers

How to execute SonarQube Runner from Bamboo?

I have setup SonarQube in Azure Virtual Machine. sonarqube-5.4 MSBuild.SonarQube.Runner-2.0 SonarQube website at 9000 port is up and running. (http://something.regionname.cloudapp.azure.com:9000/) Now, how to execute sonarrunner from a local bamboo…
Bhanu
  • 343
  • 6
  • 17
1
vote
1 answer

VS Unit Test Results file (.trx) is not displayed into SonarQube

I have setup SonarQube with the following: sonarqube-5.4 MSBuild.SonarQube.Runner-2.0 VS 2013 (target .net framework 4.5.1) SQLServer2014 Express Edition Windows7Professional SP1 64bit OS I used the above settings and able to publish the code…
1
vote
0 answers

SonarQube email settings broken?

I'm logging in to SonarQube as a user with a sonar-administrator role and want to edit the global email settings (previous settings were incorrect) and now this view is completely empty! Is there an explanation? SonarQube version is 5.4. Edit: Here…
Alix
  • 1,846
  • 20
  • 54
1
vote
1 answer

Sonarqube 5.4 Leak Configuration issue

I've got an issue with my Quality Gate defines. For a single gate I have multiple rules for checking against other results. There are for example some rules comparing new issues of several certainities to the last analysis and some rules against the…
The_Gentleman
  • 975
  • 1
  • 9
  • 18
1
vote
1 answer

Chart missing in SonaQube 5.4 Time Machine

I upgraded our SonarQube server the other day from 5.3 to 5.4 after that some of the graphs in the Time Machine Dashboard stopped working. Any suggestions? Se enclosed picture. I get this in the log: ERROR web[rails]…
Magnus Timner
  • 51
  • 1
  • 5
1
vote
0 answers

Sonar 5.4 support qualitygate

we just upgrade our Sonar server from 4.5.4 to 5.4 and find out that the sonar.qualitygate parameter is not supported any more. How can we update the quality gate dynamically from the build server - We run Sonar for every feature branch and we have…
Mor Lajb
  • 2,114
  • 9
  • 24
0
votes
1 answer

SonarQube: avoid counting comments percentage for getters and setter in java

After searching for a while here and in the web I found the property sonar.squid.analyse.property.accessors which was documentated here: https://docs.sonarqube.org/display/SONAR/Metrics+-+Public+API This looks like what we want but the documentation…
Michael
  • 43
  • 6
0
votes
1 answer

SonarQube projects pass Quality Gate when there is no data?

I'm using SonarQube 5.4 and I noticed that when a metric, which is used to calculate the Quality Gate status, is missing then that is handled in the same way as if the criteria was met. Isn't it more intuitive that the Quality Gate fails if there is…
Alix
  • 1,846
  • 20
  • 54
0
votes
1 answer

SonarQube 5.4: How to define dashboard (or filter) for a particular subset of my projects?

Our enterprise is very large (~100 projects), and divided up into teams (~10 to 20 projects per team). Assume that the teams have names like "Alpha", "Bravo", "Charlie", etc. I'd like to create a dashboard with a "Measure Filter as List" widget…
0
votes
1 answer

Sonar 5 returns no code coverage data using the groovy plugin and using cobertura for code coverage

Sonar 5 returns no code coverage data using the groovy plugin and using cobertura for code coverage. Maven also fails to return code coverage. Configure a test instance with SonarQube 5.4 and the flowing plugins: Build Breaker 1.1 Findbugs 3.3 Git…
0
votes
1 answer

Compare Sonarqube Branch against Trunk Issues

We used SonarQube Version 5.0 for our Quality analysis. After the the server version upgrade to 5.4, wen can't find the option to compare the branch against a trunk. The documentation is not very clear in this point. Can you help me?
Dudei95
  • 200
  • 2
  • 14
0
votes
1 answer

Sonarqube missing API after upgrade from 5.2 to 5.4

After upgrading from 5.2 to 5.4 it seems the 'addContainerExtension(..) method has been completely dropped since 5.3. We relied on this method for injecting our own custom rules. The method does not seem to have been marked deprecated - its purely…
0
votes
0 answers

SonarQube : cannot insert duplicate key row in object 'dbo.file_sources' with unique index 'file_sources_file_uuid_uniq'. The duplicate key value is

during the process migration of Sonar (from 4.5.7 to 5.4), we faced to an issue. The migration failed with this message : Cannot insert duplicate key row in object 'dbo.file_sources' with uni que index 'file_sources_file_uuid_uniq'. The duplicate…
RastaChaum
  • 26
  • 2
0
votes
0 answers

How to view SonarQube Unit Test Information

One of our task requirements is being able to view information regarding Visual Studio unit tests (e.g name of test, duration, etc). However, after running the runner and getting the coverage we noticed that we cannot find a way to view them, and…
Ivanov
  • 37
  • 1
  • 3