Reputation: 73
I have used the Deploy to Container plugin in Jenkins and facing couple of issues here:
Can someone who has used plugin for deploying war into the Tomcat container respond the this query please.
Upvotes: 1
Views: 2829
Reputation: 36
New Item
link on the menu bar on
the left hand side of the pagePost-build Actions
and fill in the following info into the data fields...WAR/EAR Files: **/*.war
Context path: /your-path-name
Add
button next to the "Credentials" field and select Jenkins
Kind
field is Username with password
Add
Apply
then Save
Tomcat X.0/conf/tomcat-users.xml
file<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.Configure System
page under Manage Jenkins
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).DONE!
Upvotes: 1