I have jenkins setup with 2 separate nodes. I also have a parent job that calls multiple jobs. One of these jobs is called multiple times during the build of the parent job (it does some cleaning for the workspaces between the rest of the jobs).
I would like to know if it's possible to dynamically tie builds of this job to specific node?
As I mentioned the job cleans the workspaces and obviously I need that to be done on both nodes during the build of the parent job. I also don't want to create 2 separate jobs that does the exact same thing and the only difference is the checkbox that statically ties each to different nodes. Is there a solution to my problem?