SQ prepare step fails because it needs login / token

We are using SonarQube with Azure Devops. We are also facing this issue:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: (default-cli) on project xyz-webapp: Not authorized. Analyzing this project requires authentication. Please provide a user token in sonar.login or other credentials in sonar.login and sonar.password. → [Help 1]

SonarQube Analysis configuration shows version as 4.25.1
Starting: SonarQubePrepare


Task : Prepare Analysis Configuration

Description : Prepare SonarQube analysis configuration

Version : 4.25.1

Author : sonarsource

Help : Version: 4.25.1. More Information


##[warning]This task uses Node 6 execution handler, which will be removed March 31st 2022. If you are the developer of the task - please consider the migration guideline to Node 10 handler - azure-pipelines-tasks/migrateNode10.md at master · microsoft/azure-pipelines-tasks · GitHub (check this page also if you would like to disable Node 6 deprecation warnings). If you are the user - feel free to reach out to the owners of this task to proceed on migration.


Finishing: SonarQubePrepare

Hi @CatchSandeepVaid

Can you share your pipeline configuration please ?

Thank you.