<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -20,9 +20,11 @@ class BeanstalkScheduler
   
   def check_build_request_until_next_polling
     @project.build_if_requested
-    # Wait and the immediately delete this job.  We currently don't use job data.
-    @client.reserve.delete
-    @project.build
+    # Wait for the next job.  It will include the revision to build, so tell
+    # the builder to build that revision
+    job = @client.reserve
+    job.delete
+    @project.build Revision.new(job.body)
   end
 
   def same_error_as_before(error)</diff>
      <filename>app/models/beanstalk_scheduler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2af96337f63de3f69888a1378dfca15180a344fb</id>
    </parent>
  </parents>
  <author>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </author>
  <url>http://github.com/dustin/cruisecontrolrb/commit/36561b7139f316e594ef45fdaf2740c8984d9999</url>
  <id>36561b7139f316e594ef45fdaf2740c8984d9999</id>
  <committed-date>2008-05-11T15:16:52-07:00</committed-date>
  <authored-date>2008-05-11T15:16:52-07:00</authored-date>
  <message>Attempt to build the version that was actually updated.</message>
  <tree>1358e03e9b2abd22ecc561840e718aaf8a45dba7</tree>
  <committer>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </committer>
</commit>
