Skip to content

Commit

Permalink
Merge pull request #1 from masaki/normalize_job_url
Browse files Browse the repository at this point in the history
job url should not contain "//"
  • Loading branch information
kentaro committed Nov 8, 2012
2 parents 341351a + 283cd86 commit 1fb4b45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ikachan/message.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1fb4b45

Please sign in to comment.