Getting error Prepare SonarQube analysis configuration step

We are using 8.6 version of SonarQube. We are trying to integrate Azure DevOps pipeline with SonarQube and getting below error at Prepare SonarQube analysis configuration step. We have created service connection ADO and also Token on SonarQube. Any help will be appreciated.

SonarScanner.MSBuild.Program.(String args)
2020-12-22T22:57:59.8074983Z System.ArgumentException: username cannot contain the ‘:’ character due to basic authentication limitations
2020-12-22T22:57:59.8075813Z at SonarScanner.MSBuild.PreProcessor.WebClientDownloader…ctor(String userName, String password, ILogger logger)
2020-12-22T22:57:59.8076228Z at SonarScanner.MSBuild.PreProcessor.PreprocessorObjectFactory.CreateSonarQubeServer(ProcessedArgs args)
2020-12-22T22:57:59.8076541Z at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.d__12.MoveNext()
2020-12-22T22:57:59.8076818Z — End of stack trace from previous location where exception was thrown —

Hi @Kaisha_kumar,

Welcome to the SonarSource community :wave:

From the log you posted, it looks like you have a : in the user’s username. You mentioned that you are using token. Can you verify what analysis parameters are being used?

What are the analysis properties passed to the SonarScanner MSBuild Begin step? Can you show the full logs also? You can pass /d:"sonar.verbose=true" in the Begin step.

Joe

HI Joe

Thanks for responding.

My issue got resolved. Someone had messed up with the token value while passing in the service connection in ADO.

Regards,
Ashutosh

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.