Commit 6eacfa99 authored by Douwe Maan's avatar Douwe Maan Committed by Rémy Coutable

Merge branch 'rs-sentry-release-tracking' into 'master'

Add release tracking for Sentry



See merge request !2863
parent 10354f7a
...@@ -3,6 +3,6 @@ module Gitlab ...@@ -3,6 +3,6 @@ module Gitlab
Settings Settings
end end
VERSION = File.read(Rails.root.join("VERSION")).strip VERSION = File.read(Rails.root.join("VERSION")).strip.freeze
REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp.freeze
end end
...@@ -14,6 +14,7 @@ if Rails.env.production? ...@@ -14,6 +14,7 @@ if Rails.env.production?
if sentry_enabled if sentry_enabled
Raven.configure do |config| Raven.configure do |config|
config.dsn = current_application_settings.sentry_dsn config.dsn = current_application_settings.sentry_dsn
config.release = Gitlab::REVISION
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment