lib/bib/opsworks/qafoo.rb in BibOpsworks-0.1.4 vs lib/bib/opsworks/qafoo.rb in BibOpsworks-0.1.5
- old
+ new
@@ -13,13 +13,16 @@
url = URI.parse(qafoo_url)
request = Net::HTTP::Post.new(url.request_uri)
request.body = qafoo_params.to_json
log.debug('qafoo sending data: ' + qafoo_params.to_json)
-
- http = Net::HTTP.new(url.host, url.port)
- http.use_ssl = true
- resp = http.request(request)
+ begin
+ http = Net::HTTP.new(url.host, url.port)
+ http.use_ssl = true
+ resp = http.request(request)
+ rescue SocketError => se
+ log.info('Unable to publish deployment with tideways: ' + se)
+ end
log.debug('qafoo Response: ' + resp.code + ' ' + resp.message)
resp.is_a? Net::HTTPSuccess
end
def prepare_publishing_data(app_name, deploy_data)