Questions tagged [sonarqube-api]

The SonarQube HTTP api allows to access SonarQube functionality via a json or protocol buffer interface.

42 questions
0
votes
0 answers

Sonarqube: list of the projects that are not comply with a rule

I'm using SonarQube 8.9 LTS and I need to find all the projects in my SonarQube instance that do not comply with the rule Track uses of 'NOSONAR' comments using the SonarQube REST API. I've tried this…
Cesare
  • 1,629
  • 9
  • 30
  • 72
0
votes
0 answers

Sonarqube get status of background tasks for projects

I am using measures.get_component_with_specified_measures to connect to the relevant endpoint to get the metrics of a project, using the Sonarqube web client module in Python…
0
votes
0 answers

SonarQube Api Hostspot

I am trying to make a rest call to the Sonarqube API and can't seem to be able to grab the hotspots. Below is the url I am trying to call: baseURL/measures/component?metricKeys=hotspot&component=projectKey Documentation says you are required to…
Hemi81
  • 578
  • 2
  • 15
  • 34
0
votes
1 answer

How to get a report for projects created in last 6 months for sonarqube?

I didn't find any api query to get the projects list with the project creation date(not last analysys date). GET api/projects/search The above query giving only project names but without creation date. How to get the report for this? I tried running…
uday kiran
  • 185
  • 1
  • 1
  • 10
0
votes
1 answer

Authentication issue while accessing Sonarqube api from Angular

I need to access Sonarqube Api from Angular 8 app but my request call is failing, I have tried following way: app.service.ts import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Injectable() export class…
0
votes
2 answers

SonarQube plugin: how to get property value from command line -D

I am new to sonar plugin development. I wrote a plugin and add PropertyDefine to context. And then I wanna get my property value passed by gradle sonarqube -Dmy.proper.name=xxx I don't know what are the next steps? Plz help. Thanks.
Rocky
  • 1,287
  • 3
  • 15
  • 37
0
votes
0 answers

SonarQube Post Custom Results

We have a process to produce any violations related to secrets in code. These violations can be in any type of code files, for example XML, jsom, configs or c#, Java code files. Our scanner runs as part of VSTS build pipeline and produces a json…
0
votes
1 answer

How can I get the open new issues, confirmed new issues, false positive new issues?

This is a screen where we configure our project, SonarQube shows new issues open, confirmed which is highlighted in yellow, I am using the SonarQube API in my application and want to dump the data to my DB. Accordingly I will create the report. But…
0
votes
1 answer

How to search for measures, corresponding to a specific project version?

I am using SonarQube 6.4 (build 25310, self-hosted). I'm able to search using id as demonstrated by this URL: https://sonarqube.localhost.com/component_measures/metric/coverage/history?id=%AWESOME_API% What other parameters can I use? I would want…
dmcgill50
  • 528
  • 6
  • 26
0
votes
0 answers

Can you access Sonarqube API with Javascript/JQuery?

I'm trying to make a dashboard widget in TFS which retrieves information from my SonarQube 6.1 instance (particularly the code coverage of projects). I'm having trouble accessing the web api. My code to access this data currently looks like this: …
kicksticks
  • 239
  • 3
  • 14
0
votes
1 answer

How to get all results for api/issues/search (not just first 500)?

I am trying to use the SonarQube web service API api/issues/search to extract the information of all issues. But I see that the maximum number of results from the API is only 500 with filters like pageSize. Is there a different way of using this…
CSharped
  • 1,247
  • 4
  • 20
  • 49
-1
votes
1 answer

How to access a specific version of a component?

I would like to get the measures of different versions of a component in SonarQube. How can I access an older version than the one of the latest analysis with Python?
F.Fraisse
  • 3
  • 2
1 2
3