title: Jenkins: How to get value from a Groovy Script to be used in a downstream project?
body: <p>I need to be able to get some slave information to be used in one of my jobs.</p>
  
  <p>I have a Groovy system script to access the slave information</p>
  
  <pre><code>for (aSlave in hudson.model.Hudson.instance.slaves) {
    println('====================');
    println('Name: ' + aSlave.name);
    println('getLabelString: ' + aSlave.getLabelString());
  
    ... In here I can dig out the information that I need
  }
  </code></pre>
  
  <p>Is there a way how I can get the information back to use in a Post Build Job?</p>
  
  <p>I need to add the output to a parameter or something that can be used by a Post Build Job?</p>