1、配置SVN後提示unable to access to repository,原因是使用的賬戶沒有通路svn的權限,建立新的使用者即可。注意新的使用者,使用者名,密碼要跟svn上的權限一緻。
建立路徑: Jenkins--credentials---add credentials即可。description寫svn路徑,這樣友善後續不同權限的區分。
參考位址:http://www.cnblogs.com/topplay/p/3864922.html
2、sonarqube server設定中Server authentication token項需要在sonar server端生成,故通路sonar server端,設定路徑:菜單--》配置--》權限--》使用者--》TOKENS--》Generate 生成token,将生成的複制到 Server authentication token即可。
參考位址:http://www.th7.cn/db/mysql/201605/187935.shtml
3、job建構運作時提示:
ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Error when executing blame for file src/scripts/accountMgr/authMgr/authMgr.js at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:102) at org.sonar.plugins.scm.svn.SvnBlameCommand.blame(SvnBlameCommand.java:59)
原因是沒有配置sonar.scm.disabled,在項目配置檔案sonar_project.properties中配置其值為true即可。如果此處不設置,會通過svn訪問,這時候無權限。
sonar.scm.disabled=true
另一種修改方法是直接接修改sonarqube伺服器的設定:
參考位址:http://fanli7.net/a/caozuoxitong/Linux/20160616/565021.html