After update to 2025.5.0 I'm getting 'The property 'sonar.password' is no longer supported'

I have a Jenkins Pipeline that ends with a SonarQube execution.
All was working correctly until I updated to version 2025.5.0 (from 2025.1.0).

I’m using project tokens to connect Jenkins pipeline to SonarQube, however I keep getting the error bellow and it does not start the execution.

ERROR: Error during SonarScanner execution
ERROR: The property ‘sonar.password’ is no longer supported. Please pass a token with the ‘sonar.token’ property instead.
ERROR:
The SonarScanner did not complete successfully
10:28:10.896 Post-processing failed. Exit code: 1

Anyone had something similar to this?

Hi,

Welcome to the community!

sonar.password was deprecated several years ago and finally removed in recent versions. You’ll need to do what the error message says and edit your config to swap out sonar.password (and sonar.login) with a replacement of sonar.token=[your token value].

 
HTH,
Ann