Permalink
Browse files

Copy the build status back to @current_build.

* @current_build needs to hold the SHA hashes and the
  commit URL for the notifiers.
  • Loading branch information...
1 parent 219796a commit 23f20457c254af88e1c7f69fb166a48bc88197b7 @febuiles febuiles committed with Feb 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/cijoe.rb
View
@@ -139,6 +139,7 @@ def build!(branch=nil)
Process.waitpid(build.pid, 1)
status = $?.exitstatus.to_i
+ @current_build = build
puts "#{Time.now.to_i}: Built #{build.short_sha}: status=#{status}"
status == 0 ? build_worked(output) : build_failed('', output)

0 comments on commit 23f2045

Please sign in to comment.