全部博文(150)
分类: 系统运维
2018-11-15 18:39:44
前日开发同事反馈想每次构建完成利用钉钉机器人发通知,希望jenkins升级到2.7.3以上的版本。于是升级开始,期间经历jenkins升级-插件升级-sonar服务升级-sonarqube scanner升级等等
wget -c "" --no-check-certificate
service jenkins stop
mv jenkins.war jenkins.war.1.651 #cp 下载的war到此处
service jenkins start
登录jenkins查看
jenkins内配置了100多个项目,所以没有逐个检查。大概看了ios和android的几个构建项目都正常
插件的升级
略
ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.sonar.SonarRunnerBuilder.populateConfiguration(SonarRunnerBuilder.java:367) at hudson.plugins.sonar.SonarRunnerBuilder.perform(SonarRunnerBuilder.java:282) at hudson.plugins.sonar.SonarRunnerBuilder.perform(SonarRunnerBuilder.java:249) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.build(MavenModuleSetBuild.java:945) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:896) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1810) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Build step 'Execute SonarQube Scanner' marked build as failure channel stopped
从上述报错信息看不出来什么有价值的信息,决定升级sonar
10:09:30.701 ERROR: Error during SonarQube Scanner execution org.sonar.squidbridge.api.AnalysisException: Please provide compiled classes of your project with sonar.java.binaries property
原来是从sonarqube从4.12版本开始需要这个参数,于是在源码的文件 sonar-project.properties 内增加这个配置
sonar.sources=src/main/java ## 新增的配置 sonar.java.binaries=target/classes