Description
📜 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
🌍 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?
- I have read the Code of Conduct