Permalink
Browse files

Merge pull request #1 from masaki/normalize_job_url

job url should not contain "//"
  • Loading branch information...
2 parents 341351a + 283cd86 commit 1fb4b4599a2e52b062bfd03c1510d710f65ebfc9 @kentaro committed Nov 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/ikachan/message.rb
View
@@ -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

0 comments on commit 1fb4b45

Please sign in to comment.