Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/build/auto_retry.rb')
-rw-r--r--lib/gitlab/ci/build/auto_retry.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/ci/build/auto_retry.rb b/lib/gitlab/ci/build/auto_retry.rb
index 4950a7616c8..453c293f6cd 100644
--- a/lib/gitlab/ci/build/auto_retry.rb
+++ b/lib/gitlab/ci/build/auto_retry.rb
@@ -47,7 +47,9 @@ class Gitlab::Ci::Build::AutoRetry
end
def options_retry_when
- options_retry.fetch(:when, ['always'])
+ default = ['always']
+
+ options_retry.fetch(:when, default) || default
end
def retry_on_reason_or_always?