Can I start a new job from a running job AND ensure it runs on the same agent?
Having trouble figuring out how to do this. I have one job that creates some files in the workspace, and I want to run a lower priority job that will do something with them later….
Please sign in to leave a comment.
You could set up snapshot dependencies between the two jobs and enforce that the second job runs on the same agent, do the following:
1. Go to the Build Configuration Settings of the second job.
2. Under Dependencies, define the snapshot dependency on the first job.
3. Check the option that says “Run on the same agent”.
4. This ensures that the dependent job will run on the same agent as the one that executed the initial job.
Best Regards,
Tom