Unable to start analysis using sonar.token insted of sonar.login

  • SonarQube version - 9.9 LTA
  • SonarScanner CLI 7.1.0.4889
  • Java 17
  • how is SonarQube deployed: zip
  • what are you trying to achieve - Run analysis using global analysis token using sonar.token
  • what have you tried so far to achieve this - Running local analysis with global analysis token/ user token on mac and linux

I am getting error asking me to use a user token insted of analysis token. I have attached the error logs below
error.txt (1.0 KB)

I tried replacing with admin user and global project analysis token the cli still asks for sonar.login to be populated insted of sonar.token.

Hi,

The sonar.token property was added in SonarQube 10.0. For SonarQube 9.9 you must pass the token in the sonar.login property.

Hi Scott. Thanks for answering the question