Skip to content

Bug: Sonarqube Plugin in CI not working #6406

Closed
@tanmaymohan

Description

@tanmaymohan

📜 Description

While configuring the Sonarqube in pre-build stage , it fails to retrieve the sonar token variables and bugs out in the ci steps. The Sonarqube global token is already supplied in the input variables and project key is also present.

👟 Reproduction steps

Go to either of the plugin Sonarqube or Sonarqube 1.0.0 or v1.1.0.

Enter the project key , apikey , endpoint

Use properties file = choose any
Check for sonaranalyis = true
Abort on policy check = false
Container image = blank (default)

👍 Expected behavior

It should fetch the proper variables , run the sonarscanner and show the results in Sonarqube dashboard and complete the ci step.

👎 Actual Behavior

Fails with errors of missing variables whereas they are already present

☸ Kubernetes version

EKS Kubernetes 1.29 and Devtron v1.2.2

Cloud provider

AWS ap-south-1

🌍 Browser

Chrome

🧱 Your Environment

Tried running Sonarqube 9.9 LTS community and also 2025 latest both had same issue.
Sonarqube addition in helm in devtron stack manager also didn't work
Tried adding the option to run the scanner container manually in a custom CI task and mounted the code accordingly and it failed with permission denied error.

✅ Proposed Solution

To fix, there could be a change in SONAR_LOGIN which is getting deprecated and SONAR_TOKEN should be read from variables.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find any similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Labels

bugSomething isn't workingneeds-triageIssue is not approved or ready-to-work on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions