运行jenkins构建时的声纳凭证问题

时间:2014-07-10 06:05:02

标签: sonarqube

我正在使用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 
“sonar”是在Sonar.Upon中创建的本地用户在jenkins中触发构建,有时我的构建失败并出现以下错误: -

[错误]无法执行目标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.

0 个答案:

没有答案