title: Get build information from Jenkins API with jenkins_api_client
body: <p>I'm writing a Jenkins plugin and I want to retrieve last build information (number, timestamp, build parameters) for a given job from the Jenkins API. I can do this using <strong>jenkins_api_client</strong> (ruby gem) with REST call and obtain it.</p>
  
  <pre><code>&lt;url_to_jenkins&gt;job/&lt;job name&gt;/api/json?pretty=true&amp;tree=builds[actions[parameters[name,value]],id,number]
  </code></pre>
  
  <p>This is the output I get:</p>
  
  <pre><code>"{""builds""=&gt;
  [{""actions""=&gt;
  [{""parameters""=&gt;
  [{""name""=&gt;""BUILD"", ""value""=&gt;""APACHE""}, 
  {""name""=&gt;""CLIENT"", ""value""=&gt;""GOOGLE""}]}, {}, {}, {}, {}], 
  ""id""=&gt;""2013-03-09_07-36-49"", 
  ""number""=&gt;18}]}"
  </code></pre>
  
  <p>How can I get <code>BUILD</code> and <code>CLIENT</code> values i.e., <code>APACHE</code> and <code>GOOGLE</code> in ruby?</p>