我正在使用Jenkins版本1.480.3和Sonar版本3.4.1。我正在使用maven构建选项“sonar:sonar -PsonarJs”和jenkins的以下属性对我的项目执行Sonar分析: -
sonar.login=sonar
sonar.password=*****
sonar.host.connectTimeoutMs=300000
sonar.host.readTimeoutMs=600000
projectVersion=${projectVersion}
sonar.projectKey=abc
sonar.projectName=abc
sonar.projectVersion=${projectVersion}
sonar.sources=${MyPath)
sonar.branch=javascript
sonar.language=js
sonar.forceAnalysis=true
[错误]无法执行目标org.codehaus.mojo:sonar-maven-plugin:2.0:项目vos-generic上的声纳(default-cli):无法执行声纳:未授权。请检查属性sonar.login和sonar.password。
This is an intermittent error, sometimes the build fails with this error and sometimes it is successful.
I tried to resolve this error by creating a new local user "sonar1" in Sonar and adding it to the administrative group but got the same error again.
Any help is appreciated.Thanks in advance.