lib/vidar/cli.rb in vidar-0.5.1 vs lib/vidar/cli.rb in vidar-0.6.0

- old
+ new

@@ -78,10 +78,11 @@ deploy_status = Vidar::DeployStatus.new(namespace: Config.get!(:namespace), filter: "deploy-hook") deploy_status.wait_until_completed unless deploy_status.success? + Run.kubectl "describe job deploy-hook" Log.error "Error running deploy hook template" exit(1) end end else @@ -116,16 +117,22 @@ revision: Config.get!(:revision), revision_name: Config.get!(:revision_name), deploy_config: deploy_config ) + sentry_notification = SentryNotification.new( + revision: Config.get!(:revision), + deploy_config: deploy_config + ) + deploy_status = Vidar::DeployStatus.new(namespace: Config.get!(:namespace)) deploy_status.wait_until_completed if deploy_status.success? Log.info "OK: All containers are ready" slack_notification.success if slack_notification.configured? + sentry_notification.call if sentry_notification.configured? else Log.error "ERROR: Some of containers are errored or not ready" slack_notification.failure if slack_notification.configured? exit(1) end