We are trying to automate the process of deploying the generated war files via Jenkins to web server. I was able to achieve the same for normal war files using Deploy plugin over tomcat server.
For Liferay portlet war files, I can't use the same plugin as we put war files into deploy folder in liferay and then it gets copied over to tomcat webapps folder.
Another approach I see is to add the deploy path in pom.xml <properties>
<liferay.auto.deploy.dir>${deployPath}</liferay.auto.deploy.dir>
<liferay.version>6.1.0</liferay.version>
</properties>
and then run the maven command mvn package liferay:deploy to copy to deploy directory.
Do you have any other option or thoughts, Thanks!