From 73cebcf696cef6ad74f03b3b2ba59c70270b9de7 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Wed, 25 Jun 2014 05:53:09 -0400 Subject: [PATCH] [FIX] runbot: use runbot.repo.domain() instead of hardcoded URL (the whole thing could possibly be replaced by web.base.url) --- runbot/runbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runbot/runbot.py b/runbot/runbot.py index a1b330f1..bdbbd6b5 100644 --- a/runbot/runbot.py +++ b/runbot/runbot.py @@ -630,6 +630,7 @@ class runbot_build(osv.osv): def github_status(self, cr, uid, ids, context=None): """Notify github of failed/successful builds""" + runbot_domain = self.pool['runbot.repo'].domain(cr, uid) for build in self.browse(cr, uid, ids, context=context): if build.state != 'duplicate' and build.duplicate_id: self.github_status(cr, uid, [build.duplicate_id.id], context=context) @@ -648,7 +649,7 @@ class runbot_build(osv.osv): status = { "state": state, - "target_url": "http://runbot.odoo.com/runbot/build/%s" % build.id, + "target_url": "http://%s/runbot/build/%s" % (runbot_domain, build.id), "description": desc, "context": "continuous-integration/runbot" }