Skip to content

Commit

Permalink
Adding an automate retry to check_satellite_build_completed.rb (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Beck authored Oct 3, 2019
1 parent 145fd9e commit c73e22d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ def get_satellite_api()
$evm.root['ae_result'] = 'ok'
end
rescue => err
error("[#{err}]\n#{err.backtrace.join("\n")}")
$evm.log(:error, "Error checking build status: #{err.message}")
$evm.root['ae_result'] = 'retry'
$evm.root['ae_retry_interval'] = '30.seconds'
end
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ object:
scope: instance
language: ruby
location: inline
options: {}
inputs: []

0 comments on commit c73e22d

Please sign in to comment.