global

def retry_failed?

happened within a short time window, a new build should not be triggered.
Internal: To avoid cascading build failures, if the last build failed and it
def retry_failed?
  !success && Time.parse(timestamp) + 3 < Time.now # 3 seconds
rescue ArgumentError
  true
end