jenkins 构建项目

参考博客:https://www.cnblogs.com/Iqiaoxun/p/5350589.html

注意:

1.远程的tomcat要启动

2.tomcat的config文件要修改

<role rolename="admin"/>

<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="123456" roles="admin,admin-gui,manager,manager-gui,manager-script,manager-jmx,manager-status"/>

3.跳过测试错误

clean install  -Dmaven.test.skip=true

猜你喜欢

转载自www.cnblogs.com/zln1006238746/p/9958160.html
今日推荐