Jenkins CI/CD pipeline and Liferay Quartz scheduler

Jamie Sammons, modified 3 Years ago. New Member Posts: 2 Join Date: 9/28/22 Recent Posts

Hi, I have a dilema and need some help.

I have a Liferay 7.2 Community edition. We use quartz service to schedule a few jobs.  We also just implemented a Jenkins CI/CD pipeline to deploy changes to Liferay's deploy folder each day.  However, if a quartz job is running at the time of Jenkins deployment, the job will be broken upon deployment.  I was told that we needed to remove the old Jar, truncate the quartz_* tables and restart the Tomcat server and redeploy the scheduleTask jar to get the jobs back online again.  Now, obviously, that's a lot of manual work.  So I want to see if you know a way to solve this to allow our Jenkins CI/CD pipeline to work in an automatic way?