title: Executing Hudson jobs remotely
body: <p>I am trying to automate Hudson by hitting the appropriate urls remotely. I am using python's urllib2 for doing the same.</p>
  
  <p>First of all , I am trying to build an existing job and get the build status.</p>
  
  <p>A sample url for the build would look like this:</p>
  
  <p><a href="http://tomcaturl:8080/hudson/job/.NET%20Build/build" rel="nofollow">http://tomcaturl:8080/hudson/job/.NET%20Build/build</a></p>
  
  <p>However this returns to me html data.</p>
  
  <p>Hudson docs say that I can get data in python/json/xml format, so I try to hit</p>
  
  <p><a href="http://tomcaturl:8080/hudson/job/.NET%20Build/build/api/json" rel="nofollow">http://tomcaturl:8080/hudson/job/.NET%20Build/build/api/json</a></p>
  
  <p>But I get no data at all, although the build happens successfully.</p>
  
  <p>Is there a way to find out which build was started by my remote build request, so that I can maintain a one-to-one mapping.</p>
  
  <p>Please note that I am doing this through a remote python program and I DO NOT have access to hudson GUI.</p>