Skip to content

job url should not contain "//" #1

Merged
merged 1 commit into from Nov 8, 2012
+3 −1
View
4 lib/ikachan/message.rb
@@ -11,7 +11,9 @@ def message
instance = Java::jenkins::model::Jenkins.instance
root_url = (instance && instance.root_url) || ''
- msg << " (#{root_url}/#{build.url})"
+
+ url = [ root_url, build.url ].join(root_url[-1] == '/' ? '' : '/')
+ msg << " (#{url})"
"\x03%s%s" % [code.to_s, msg]
end
Something went wrong with that request. Please try again.