Tomcat Deployment using Jenkins deploy to container plugin.
The jenkins plugin name: "Deploy to container"
We need to do some configuration changes to Tomcat files also.
tomcat conf folder,tomcat_users.xml file:
<user username="somename" password="somepassword" roles="manager-script" />
This user will be used with jenkins.
Drawbacks with this approach:
Jenkins copies the war file, but Tomcat extracts it after that.
So, deployment is successful or not will be shown only till war file copying part.
But, extracting war, starting of webapp will not be shown.
These can be shown in the curl command approach of my another post.
Reference
The jenkins plugin name: "Deploy to container"
We need to do some configuration changes to Tomcat files also.
tomcat conf folder,tomcat_users.xml file:
<user username="somename" password="somepassword" roles="manager-script" />
This user will be used with jenkins.
Drawbacks with this approach:
Jenkins copies the war file, but Tomcat extracts it after that.
So, deployment is successful or not will be shown only till war file copying part.
But, extracting war, starting of webapp will not be shown.
These can be shown in the curl command approach of my another post.
Reference
No comments:
Post a Comment