Skip to content
Browse files

Handle problem with sleep() not liking ActiveRecord::Duration as a pa…

  • Loading branch information...
thewoolleyman committed Aug 25, 2009
1 parent 8fc77f8 commit a14d4f373db6a6a7346e3f3464c7406d52c51128
Showing with 6 additions and 5 deletions.
  1. +6 −2 config/configuration.rb
  2. +0 −3 lib/source_control/git.rb
@@ -16,11 +16,11 @@ class << self
attr_accessor :default_polling_interval, :disable_build_now, :email_from,
:dashboard_refresh_interval, :serialize_builds,
:serialized_build_timeout, :git_load_new_changesets_timeout
attr_writer :build_request_checking_interval
attr_reader :dashboard_url

# non-published configuration options (obscure stuff, mostly useful for
attr_accessor :sleep_after_build_loop_error, :default_page
attr_accessor :default_page
attr_writer :build_request_checking_interval, :sleep_after_build_loop_error

def dashboard_url=(value)
@dashboard_url = remove_trailing_slash(value)
@@ -31,6 +31,10 @@ def projects_directory=(value)
"To configure this, set the CRUISE_DATA_ROOT environment variable"

def sleep_after_build_loop_error
@sleep_after_build_loop_error #.to_i

def build_request_checking_interval
@@ -99,9 +99,6 @@ def load_new_changesets_from_origin
rescue Timeout::Error => e
raise"Timeout in 'git fetch origin'")
rescue Exception => e
raise e if e.class == BuilderError
raise"Exception while Git was loading new changesets from origin. #{e.class}: #{e.message}")

def git(operation, arguments = [], options = {}, &block)

0 comments on commit a14d4f3

Please sign in to comment.
You can’t perform that action at this time.