title: Jenkins REST API to retrieve completed job info
body: <p>I am simply trying to retrieve completed job info including the job result and have looked at many articles and still I can't get the completed job info.  The latest url I tried is as follows:</p>
  <pre><code>https://&lt;myjenkinsserver&gt;/jenkins/&lt;jenkinsinstancename&gt;/api/json/&amp;pretty=true&amp;depth=3&amp;tree=builds[actions[parameters[name,value]],number,result,building]
  </code></pre>
  <p>but still I get nothing that looks at all like what I am looking for.  Everything I am seeing appears to be the static jobs defined, not the completed results of the jobs because there is no job number in the results that I see which has to be there if I want to query the results of a completed job!</p>
  <p>Here is a snippet of what I get back:</p>
  <pre><code>{&quot;_class&quot;:&quot;hudson.model.Hudson&quot;,&quot;assignedLabels&quot;:[{&quot;name&quot;:&quot;docker&quot;},{&quot;name&quot;:&quot;master&quot;}],&quot;mode&quot;:&quot;EXCLUSIVE&quot;,&quot;nodeDescription&quot;:&quot;the master Jenkins node&quot;,&quot;nodeName&quot;:&quot;&quot;,&quot;numExecutors&quot;:4,&quot;description&quot;:null,
  &quot;jobs&quot;:[{&quot;_class&quot;:&quot;hudson.model.FreeStyleProject&quot;,&quot;name&quot;:&quot;build_GBO&quot;,&quot;url&quot;:&quot;https://&lt;jenkinsserver&gt;/jenkins/&lt;jenkinsinstance&gt;/job/API_build_GBO/&quot;,&quot;color&quot;:&quot;disabled&quot;},...
  </code></pre>
  <p>Thoughts?</p>
  <p>Thanks,
  Don Bouchard</p>