jenkins tomcat
tomcat增加用户配置:
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager"/>
<role rolename="manager-status"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="zhangluda" password="zhangluda456" roles="manager,manager-gui,manager-script,manager-jmx,manager-status" />
jenkins参考:
https://blog.csdn.net/songjiaping/article/details/51454243
坑坑坑坑坑坑坑坑坑坑 聚合工程
工作空间路径:C:\Program Files (x86)\Jenkins\workspace\sdcs\sdcs_server\web\target
jenkins需要填写: web/target/*.war
此时可以上传成功至远程tomcat,如果设置不成功,则构建成功后那一项设置根本不执行,SHIT~~也不报错~
但会显示乱码
需要设置tomcat server
服务器/conf目录/server.xml文件
将相关语句改为:
<Connector port="8008" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
之前的语句没有URIEncoding="UTF-8"这一句