title: Hudson build trigged by API
body: <p>I was wondering if there was a way to do this in Hudson (or with any of the various plugins). My IDEAL scenario:</p>
  
  <p>I want to trigger a build based on a job through a REST-like API, and on that build, I want it to return me a job ID. After-wards, I would like to poll this ID to see its status. When it is done, I would like to see the status, and the build number. </p>
  
  <p>Now, since I can't seem to get that working, here is my current solution that I have yet to implement:</p>
  
  <p>When you do a REST call to do a build, its not very REST-ful. It simply returns HTML, and I would have to do a kind of parsing to get the job ID. Alternatively, I can do a REST call for all the history listing all the jobs, and the latest one would be the one I just built. Once I have that, I can poll the console output for the output of the build.</p>
  
  <p>Anyone know a way I can implement my "ideal" solution?</p>