I have a use case where I need to make sure the currently running step is the only step executing on the build agent. I can see the list of grid jobs for the given build, and when the given agent is executing the given step there are 3 jobs in the list (including the current step job). How can I determine that the given agent is executing only the current step and that the agent is not currently being used in any other builds. Thank you.
You may define a grid resource with only 1 instance on that agent, and then configure all steps running on that agent also requiring that resource (via node selection setting)