Portlet status from Jenkins

Ovidiu David Dan, modified 5 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
We are implementing continuous deployment with Jenkins and we would like to check that the portlets have been deployed correctly. Do you know if there is any endpoint of the liferay api that gives us this functionality?
Thank you
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ovidiu David Dan:

We are implementing continuous deployment with Jenkins and we would like to check that the portlets have been deployed correctly. Do you know if there is any endpoint of the liferay api that gives us this functionality?
gogo shell?
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Olaf already mentioned gogo shell, some other ideas:
Perhaps you could check the logfile of the server? ssh + tail + grep should do the trick.
Or place a testinstance of the portlet on a page, fetch the page and parse for some string that tells you that the expected version is deployed (e.g. version or build number)
What we do:
Since most of our services have rest endpoints nowadays, we usually have a "Get Status" method and we call it from a script to check if the module is still working correctly.
Ovidiu David Dan, modified 5 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
Sorry, we are with Liferay 6.2..
Ovidiu David Dan, modified 5 Years ago. New Member Posts: 15 Join Date: 1/23/17 Recent Posts
Finally I solved this problem using market place service:AppLocalServiceUtil.getInstalledApps()