继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

jenkins+sonarqube+svn/git踩过的坑

慕田峪0738999
关注TA
已关注
手记 344
粉丝 88
获赞 494

sonar踩过的坑

maven项目使用sonar审核代码:https://my.oschina.net/duojin/blog/1836597

权限问题。 sonar es can not run elasticsearch as root:参考博客https://blog.csdn.net/zdyueguanyun/article/details/79447260

mvn sonar:mvn sonar:sonar  -Dsonar.host.url=http://localhost:9000  -Dsonar.login=e3e07fb788571c35a8014af358d29256bf216b02

SCM provider autodetection failed. Both svn and git claim to support this project. Please use sonar.scm.provider to define SCM of your project.

sonar+svn:不依赖svn 配置scm为true

Please provide compiled classes of your project with sonar.java.binaries property

null:null:null的问题:jar包下载不全,需要删除仓库,重新下载

sonar 数据库占满了,直接崩溃了,启动的时候爆出 quit without update pid,崩溃

jenkins踩过的坑:

jenkins修改端口命令:java -jar jenkins.war --ajp13Port=-1 --httpPort=8081

jekins登陆进去空白或者没有权限:https://blog.csdn.net/kuangay/article/details/80628459

brew 安装后jenkins配置文件的路径:https://www.cnblogs.com/qiaoyeye/p/8438677.html

jekins忘记密码的解决方案:https://blog.csdn.net/jlminghui/article/details/54952148

svn本地搭建踩过的坑:
mac搭建本地svn服务:https://www.cnblogs.com/czq1989/p/4913692.html
svn://localhost:8085
启动svn命令:svnserve -d -r /Users/panda/svn/mycode  --listen-port 8085

github问题踩过的坑:
配置git公钥:https://blog.csdn.net/gulingfengze/article/details/69665223
解决方案 git@github.com出现Permission denied (publickey):https://www.cnblogs.com/lxwphp/p/7884700.html

sonar+jekins集成:
http://blog.itpub.net/28624388/viewspace-2153875/
Analysis properties:
sonar.projectKey=testSonar
sonar.projectName=testSonar
sonar.projectVersion=1.0
sonar.language=java
sonar.java.binaries=target/classes/
sonar.sources=src

SpringBoot 部署问题
定义打成war包的名称:  
<build>
<finalName>projectName</finalName>
</build>
Application 继承

sonar+maven出现的问题:
sonar maven:maven error in opening zip file       https://blog.csdn.net/tengdazhang770960436/article/details/51746727 删除了本地仓库,重新下载,依旧失败!!!尚未解决
Please provide compiled classes of your project with sonar.java.binaries property -> [Help 1]   需要先编译

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP