Sonarqube authorization - how to authorize with sonar-maven-plugin when sonar.forceAuthentication is enabled

前端 未结 2 1732
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 01:59

I\'ve got sonarqube 6.5 with default configs. When sonar.forceAuthentication flag is set to false, I can create and analyse project through command given below.

2条回答
  •  無奈伤痛
    2021-01-05 02:48

    This is a minimal command that I use to update Sonar Cube Dashboard for my project,

    mvn clean install  sonar:sonar -Dsonar.host.url= -Dsonar.login= -Dsonar.projectKey= -Dsonar.projectName= -Dsonar.projectVersion=
    

    You can always wrap a string value in double quotes if it has spaces in it.

    Before using above command, you need to generate token for your user id as specified in answer provided by Eric. There is no need to pass password property.

提交回复
热议问题