From a835d1e80070fa885b6a357b69847a7c70c2fb4a Mon Sep 17 00:00:00 2001
From: Christophe Simonis
Date: Fri, 2 Sep 2016 13:02:56 +0200
Subject: [PATCH] [IMP] runbot: add link to original build for duplicate builds
---
runbot/runbot.py | 1 +
runbot/runbot.xml | 1 +
2 files changed, 2 insertions(+)
diff --git a/runbot/runbot.py b/runbot/runbot.py
index 6cb638a6..d6ddd740 100644
--- a/runbot/runbot.py
+++ b/runbot/runbot.py
@@ -1406,6 +1406,7 @@ class RunbotController(http.Controller):
'port': real_build.port,
'subject': build.subject,
'server_match': real_build.server_match,
+ 'duplicate_of': build.duplicate_id if build.state == 'duplicate' else False,
}
@http.route(['/runbot/build/'], type='http', auth="public", website=True)
diff --git a/runbot/runbot.xml b/runbot/runbot.xml
index bdb46bb4..3516b15b 100644
--- a/runbot/runbot.xml
+++ b/runbot/runbot.xml
@@ -604,6 +604,7 @@
Author:
Committer:
+ Duplicate of