jenkins部署

1、下载war包 ,直接启动

2、安装tomcat,war包放入webapp中启动

tomcat 7  用jenkins 1.5的包报错,换成2.46的包后正常

配置tomcat-user内容【可选】

<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>

配置tomcat环境变量

TOMCAT_HOME

CATALINE_HOME

CATALINE_BASE

原文地址:https://www.cnblogs.com/51testing/p/7466610.html