Let's say I have 5 maven jobs which compile some code when push to a Git repo happens. Now I have a pipeline job that deploys all those compiled code somewhere. This deploy job is triggered after any of the 5 compiling jobs are build.
My problem is, when those 5 jobs are triggered on the same time. The deploy job is then scheduled 5 times. Is there a way to say:
- Trigger this job after any of those 5 jobs are built
- If they are build on the same time, wait for the last before build
- Schedule only once