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 analyze CI is broken #122

Open
shinymerlyn opened this issue Mar 11, 2024 · 1 comment
Open

SonarQube analyze CI is broken #122

shinymerlyn opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shinymerlyn
Copy link
Contributor

shinymerlyn commented Mar 11, 2024

Edit:

Surak took care of the previous failure. But a new failure has shown up:

ERROR: Error during SonarScanner execution
INFO: Final Memory: 9M/48M
INFO: ------------------------------------------------------------------------
ERROR: Could not find a default branch for project with key 'WolfireGames_overgrowth'. Make sure project exists.
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
Error: Process completed with exit code 2.

Previous failure:

This is the failure: https://github.com/WolfireGames/overgrowth/actions/runs/8228923294/job/22499190188

...
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
...
java.lang.IllegalStateException: The plugin [java] does not support Java 11.0.14.1
...

When I google, it seems SonarQube requires Java 17 these days:
https://docs.sonarsource.com/sonarqube/latest/requirements/prerequisites-and-overview/

I tried to do a quick fix with this commit, since it's the only thing that explicitly mentions java in the yml:
64d9371

I'm not sure if the cache is preventing it from doing the right thing, or if it's not actually installing anything and is only downloading and caching them in this command, since I haven't used dnf before.

@Conan-Kudo @EmpSurak any ideas? Pulling you in since you both have commits on that yml file.

@shinymerlyn shinymerlyn added the bug Something isn't working label Mar 11, 2024
@shinymerlyn shinymerlyn changed the title SonarQube analyze CI is broken due to outdated java version SonarQube analyze CI is broken Mar 11, 2024
@shinymerlyn
Copy link
Contributor Author

@Conan-Kudo @EmpSurak still failing after Surak's attempted fix. His fix kicked the can farther down the road and we don't have Java versions problems now.
It looks like it's something to do with the config now, maybe on the SonarQube side.

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

1 participant