JENKINS调用SONAR扫描代码后,在日志中报错:
ERROR: Failed to upload report - 500: An error has occurred. Please contact your administrator
SONAR的日志目录/usr/local/sonar/sonarqube-7.2/logs下,cat web.log
修改mysql配置文件,vim /etc/my.cnf,增加:
max_allowed_packet = 64M
保存后重启MYSQL:
/usr/local/mysql/support-files/mysql.server restart
重启SONAR:
cd /usr/local/sonar/sonarqube-7.2/bin/linux-x86-64
sh sonar.sh start
SONAR报告生成正常。
网友评论