Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sonarqube 9.9.8 doesn't Support Branch Feature with 1.14.0 Plugin #1026

Open
Komodoro opened this issue Jan 15, 2025 · 3 comments
Open

Sonarqube 9.9.8 doesn't Support Branch Feature with 1.14.0 Plugin #1026

Komodoro opened this issue Jan 15, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Komodoro
Copy link

Describe the bug
I've updated Sonarqube CE from 9.9.3 to 9.9.8 and the plugin 1.14 doesn't seem to be working properly.
I'm using a Jenkins Pipeline to run this project and send the report to Sonarqube.
it's a simple inbound Java project which generates a simple report.

image
I'm getting the above error with the plugin installed as it should.
I have other instances with the plugin (with version 9.9.3) and there isn't any issue like this.

To Reproduce
Steps to reproduce the behavior:

  1. Update Sonarqube CE

  2. Push a report with the plugin in the plugin folder

  3. Get the following error as being executed in a Linux environment (as detailed above, below is a screen shot):
    This shows plugin being called:
    image
    This shows the error that I get from a client perpective:
    image

  4. See error above in the image description.

P.S. Need to red tape some URLs due to RGPD with the project.

Expected behavior
The expected behavior would be this, but with the plugin enabled

image

Software Versions

  • SonarQube Version: 9.9.8 (Build: 100196)
  • Plugin Version: 1.14.0
@Komodoro Komodoro added the bug Something isn't working label Jan 15, 2025
@mc1arke
Copy link
Owner

mc1arke commented Jan 15, 2025

This is likely to be a problem with you not having installed the plugin properly. Please share your compute engine logs from the point the server started until now.

@Komodoro
Copy link
Author

Komodoro commented Jan 15, 2025

sonarqube_ce.log

@mc1arke here you go.

I've this working in 9.9.3. and was working previously before I've upgrade. Also I've done what is on the README file. But sure, thanks for the help.

Edit:
Wrong log, this doesn't have the plugin. Give me a minute

@Komodoro
Copy link
Author

Komodoro commented Jan 15, 2025

Okay, here is a CE log with the plugin already existing in the folder and lso with the sonar property set:
sonarqube_ce(3).log

image

Edit: Also, log was retrieved after executing again the pipeline I've mentioned earlier, getting the same error.

image

I'm sorry, I didn't post my execution script:

withCredentials([string(credentialsId: 'Sonar_Generic_Token_Sandbox', variable: 'token')]) {
                        
                            sh """
                            sonar-scanner-6.2.1.4610-linux-x64/bin/sonar-scanner \
                                -Dsonar.projectName="${sonarProjectName}" \
                                -Dsonar.projectKey=${sonarProjectKey} \
                                -Dsonar.host.url=${sonarHost} \
                                -Dsonar.projectVersion=${BUILD_NUMBER} \
                                -Dsonar.sources=src/main/java \
                                -Dsonar.test=src/test/java \
                                -Dsonar.java.binaries=target \
                                -Dsonar.java.libraries=artifacts/* \
                                -Dsonar.sourceEncoding=UTF-8 \
                                -Dsonar.login=$token
                                """
                        }

Edit2: I've also tried different two diferent versions of sonar scanner client. The one stated above and sonar-scanner-4.7.0.2747

Edit3: I didn't try 1.15 neither 1.16 plugin version. I dunno if this works, because I took for granted that the 1.14 was the way to go. But I can try.

Edit4: Tried 1.16 plugin and same output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants