title: Groovy & Jenkins - capture curl output to a file
body: <p>I want to fill out a Dynamic Parameter box in Jenkins.</p>
  
  <p>My Groovy script should do the following:</p>
  
  <ol>
  <li>Collect JSON output in a file.</li>
  <li>Parse JSON output in order to get some specific values .</li>
  <li>Shows those values in a list in Dynamic Parameter of Jenkins in order to choose one of them.</li>
  </ol>
  
  <p>Can you help me with the Groovy script? No idea about Groovy :-(.</p>
  
  <p>Thanks!</p>