title: How to list jenkins slaves of selected projects
body: <p>For example, I want to list slaves that are defined in "Foo" jobs: Project_Foo1, Project_Foo2 etc...</p>
  
  <pre><code>def matchedJobs = Jenkins.instance.items.findAll { job -&gt;
      job.name =~ /Foo/
  }
  </code></pre>
  
  <p>I can list projects name, but how to get the slave names?</p>