Problem scenario
You are configuring Jenkins jobs. You want certain jobs to only run on Windows slaves (e.g., PowerShell jobs) and certain jobs to only run on Linux slaves (e.g., Bash scripts). You want to force a job force a selection of a slave server to avoid Windows or Linux servers. How do you have Jenkins avoid slave servers based on the OS architecture?
Solution
1. Go to the job and click on “Configure” or create a new job.
…