Skip to content

Commit

Permalink
Retry downloading from S3.
Browse files Browse the repository at this point in the history
Retry to downloading when it fails for some reason.
  • Loading branch information
jbraeuer committed Jun 11, 2015
1 parent 6bb666b commit c2c320c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scm_helper/libraries/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def prepare_s3_checkouts(scm_options)

execute "Download application from S3: #{scm_options[:repository]}" do
command "#{node[:opsworks_agent][:current_dir]}/bin/s3curl.pl --id opsworks -- -o #{tmpdir}/archive #{scm_options[:repository]}"
retries 2
retry_delay 10
end

execute 'extract files' do
Expand Down

0 comments on commit c2c320c

Please sign in to comment.