欢迎来到天天文库
浏览记录
ID:34723324
大小:362.38 KB
页数:9页
时间:2019-03-10
《hudsonsonar自动部署配置》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、1.Mysql创建用户· 创建一个sonar的数据库:CREATEDATABASEsonarCHARACTERSETutf8COLLATEutf8_general_ci;· 创建一个sonar用户:grantallprivilegesonsonar.*to'sonar'@'%'identifiedby'sonar';· flushprivileges;2.配置hudson系统管理-系统设置(1).配置jdk、ant、maven的基础路径(2).配置sonarServerURL:http://localhsot:9000Serv
2、erpublicURLhttp://localhsot:9000sonar.jdbc.url: jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8sonar.jdbc.driver: com.mysql.jdbc.Driversonar.jdbc.validationQuery: select1sonar.jdbc.username: sonarsonar.jdb
3、c.password: sonar(3).配置邮件3.hudson新建项目配置(1).在Projectname上写上项目名,比如:utmost(2).在SourceCodeManagement中配置SVN的地址,并把Useupdate点上(3).在BuildTriggers中,PollSCM是设置自动部署的时间。在Build中Targers里,war是打成war包,部署到Weblogic中,后面还可以接deploywlg,redeploywlg,是在java中build.xml中配置的,deplo
4、ywlg是第一次自动部署用的,之后改成redeploywlg。编写build.xml,大体如下:5、opertyname="src.test.dir"value="src/test"/>6、me="webcontent.dir"value="WebContent"/>7、message=""/>cleanoutputdirs"/>compilemainJavasources"/>buildthewebapplicationarchive"/>genjavadoc"/>runtestng"/>deploythewarfileto8、server"/>redeploythewarfiletoserver"/>
5、opertyname="src.test.dir"value="src/test"/>6、me="webcontent.dir"value="WebContent"/>7、message=""/>cleanoutputdirs"/>compilemainJavasources"/>buildthewebapplicationarchive"/>genjavadoc"/>runtestng"/>deploythewarfileto8、server"/>redeploythewarfiletoserver"/>
6、me="webcontent.dir"value="WebContent"/>7、message=""/>cleanoutputdirs"/>compilemainJavasources"/>buildthewebapplicationarchive"/>genjavadoc"/>runtestng"/>deploythewarfileto8、server"/>redeploythewarfiletoserver"/>
7、message=""/>cleanoutputdirs"/>compilemainJavasources"/>buildthewebapplicationarchive"/>genjavadoc"/>runtestng"/>deploythewarfileto
8、server"/>redeploythewarfiletoserver"/>
此文档下载收益归作者所有