Basically, I want to build a project that can be built both on windows and Linux. I want to define two jobs, windowsBuild and linuxBuild. I want the pipeline only ran the windows build if the agent chosen is a windows agent and to only run the Linux build if the agent chosen is a Linux agent. Also, I want the default agent to be the windows one, I want it to only run on the Linux if the windows one is unavailable, and in the scenario that both are unavailable it should wait for the windows agent.
p.s I am using self-hosted agents; fun fact, I accidently deleted Microsoft hosted agents and don't know how to replace them :)
Anyone know how I can do this? Would really appreciate the help, thank you.