Jenkins 打包后自动部署见下图:
tomcat用户配置:
<role rolename="tomcat" />
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="shanlin" password="tomcat" roles="tomcat,admin-gui,admin,manager,manager-gui,manager-script"/>