aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2025-01-29 09:58:11 +0000
committerChristopher Baines <mail@cbaines.net>2025-01-29 09:58:29 +0000
commitc8ff0417f167e1b48cb96997259da4c848d51653 (patch)
treeef34a89f4586feafa59e68fe880de1c6dc3c8aa6
parentd2ff7c36f379dc2c9b619b9941b4cd612df95857 (diff)
downloadbffe-master.tar
bffe-master.tar.gz
Include the agent information on the build pageHEADmaster
-rw-r--r--bffe/view/build.scm18
1 files changed, 17 insertions, 1 deletions
diff --git a/bffe/view/build.scm b/bffe/view/build.scm
index c061668..1a7dc53 100644
--- a/bffe/view/build.scm
+++ b/bffe/view/build.scm
@@ -46,7 +46,23 @@
"success")
"Succeeded"
"Failed")
- "Pending")))
+ "Pending"))
+ ,@(or (and=>
+ (peek (assoc-ref build-details "result"))
+ (lambda (result)
+ `((ul
+ (li "Agent "
+ (a (@ (href ,(string-append
+ "/agent/"
+ (assoc-ref result "agent_id"))))
+ ,(assoc-ref result "agent_id")))
+ ,@(or (and=>
+ (assoc-ref result "failure_reason")
+ (lambda (failure-reason)
+ `((li "Failure reason: ")
+ (dl ,failure-reason))))
+ '())))))
+ '()))
(dt "Priority")
(dd ,(assoc-ref build-details "priority")))