Issue Migrating to 8.1 -

We are getting an error when trying to do QA in a Jenkins Pipeline.

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project api-employee: Failed to parse public URL set in SonarQube server: -> [Help 1]

I’ve uploaded the mvn debug log. Here are the specifics of the environment
SonarQube Version 8.1
Jenkins 2.204.2 core and libraries

The analysis works from a local machine same plugin. I found the error in the source code: and have downloaded and verified that the okhttp3.HttpUrl works with this address both with and without the http:// prefix.

sonarFailure.txt (53.4 KB)

We were able to resolve this issue. It was something to do with the way we were passing the sonarqube server on the commend line.

Hey, glad you figured it out. Could you share with us exactly what was wrong with your configuration?

I encountered a similar error. If you encounter it, check the value in Administration > Configuration > General Settings > General against the attribute “Server base URL”. In our case, the url was missing the http(s):// prefix.
I hope this helps someone in the future.