Is it possible to hold a Jenkins build until the control M jobs are finished. Here is the scenario
I am ordering some jobs in control M using CTM shell utility from Jenkins by passing some parameters. The job ordering is working absolutely fine and job confirming is also working fine(All is happening through Jenkins), Here comes the problem. As soon the jobs are ordered and the desired jobs are confirmed the task of Jenkins is finished and then it triggers the next build as defined in the configuration (Post build action : build the next job with some existing parameters). I want to hold the current Jenkins build until the last ordered job in control M is finished.
Any help would be highly appreciated.