sonar-scala / sbt-sonar

An sbt plugin which provides an easy way to integrate Scala projects with SonarQube.

Home Page:https://sonar-scala.com/docs/setup/sbt-sonar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Server authentication token

Max-Jesch opened this issue · comments

commented

By now sbt-sonar does not seem to support "Server authentication token" that are provided by "SonarQube servers" from jenkins.

Did I miss something?

Hi, do you mean the user token or something else?

commented

Yes that is what I mean. Our Jenkins Server injects it as an enviroment variable which is picked up by all the Java projects using the "hudson.plugins.sonar". Because of the fact that this does not work with sbt-sonar and that I can not find any documentation about it I concluded that it is not supported. Is that correct?

It is supported through the sonar.login property as per the official docs. There's nothing specific to sbt-sonar here as it picks up any properties passed through sbt.

See an example here.