[英]Deploying war into Tomcat container in Jenkins
I have used the Deploy to Container plugin in Jenkins and facing couple of issues here: 我已经在Jenkins中使用了Deploy to Container插件,并且在这里面临几个问题:
Can someone who has used plugin for deploying war into the Tomcat container respond the this query please. 使用插件将战争部署到Tomcat容器中的人是否可以响应此查询。
New Item
link on the menu bar on the left hand side of the page New Item
链接来创建新作业 Post-build Actions
and fill in the following info into the data fields... Post-build Actions
然后在数据字段中填写以下信息... WAR/EAR Files: **/*.war
WAR / EAR文件:** / *。war
Context path: /your-path-name
上下文路径:/ your-path-name
Add
button next to the "Credentials" field and select Jenkins
Add
按钮,然后选择Jenkins
Kind
field is Username with password
Kind
字段是Username with password
Add
Add
Apply
then Save
Apply
然后单击“ Save
Tomcat X.0/conf/tomcat-users.xml
file Tomcat X.0/conf/tomcat-users.xml
文件在Tomcat中创建用户。 <tomcat-users>
tag and underneath it add your user/pass credentials you just created in Jenkins <user username="your-username" password="your-password" roles="manager-gui"/>
then save and exit. <tomcat-users>
标记,然后在其下方添加您刚刚在Jenkins中创建的用户/密码凭据<user username="your-username" password="your-password" roles="manager-gui"/>
然后保存并退出。 Configure System
page under Manage Jenkins
Manage Jenkins
下的Configure System
页面。 http://localhost:8080/your-path-name
using the context path you specified in STEP 4 (make sure the port is whatever you set your Tomcat server to run on. Default is 8080). http://localhost:8080/your-path-name
(确保端口是您设置为在其上运行Tomcat服务器的端口。默认值为8080)。 DONE! 完成!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.