module Buildkite::Pipelines::Helpers::Retry
Public Instance Methods
automatically_retry(status:, limit:)
click to toggle source
# File lib/buildkite/pipelines/helpers/retry.rb, line 7 def automatically_retry(status:, limit:) retry_value = get(:retry)&.[](:automatic) unless retry_value.is_a?(Array) retry_value = [] self.retry(automatic: retry_value) end retry_value.push(exit_status: status, limit: limit) end