Skip to content

Commit f7de984

Browse files
committed
Retry uploads 3 times in case the community site is being lame
1 parent 55bfdbe commit f7de984

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/stove/cookbook.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'fileutils'
2+
require 'retryable'
23
require 'time'
34

45
module Stove
@@ -122,7 +123,9 @@ def release!
122123

123124
if options[:upload]
124125
Stove::Logger.info "Uploading cookbook"
125-
upload
126+
retryable(tries: 3) do
127+
upload
128+
end
126129
end
127130

128131
if options[:jira]

stove.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
2424
spec.add_dependency 'minitar', '~> 0.5'
2525
spec.add_dependency 'mixlib-authentication', '~> 1.3'
2626
spec.add_dependency 'octokit', '~> 2.2'
27+
spec.add_dependency 'retryable', '~> 1.3'
2728
spec.add_dependency 'solve', '~> 0.8'
2829

2930
spec.add_development_dependency 'bundler', '~> 1.3'

0 commit comments

Comments
 (0)