[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: ci: Add status option to "latest-builds".
From: |
guix-commits |
Subject: |
01/02: ci: Add status option to "latest-builds". |
Date: |
Mon, 15 Jun 2020 09:34:36 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 9e989d9e36c5ca62a207d56fd5643f77eb72cb5d
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Mon Jun 15 15:31:03 2020 +0200
ci: Add status option to "latest-builds".
* guix/ci.scm (latest-builds): Add "status" option.
---
guix/ci.scm | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/guix/ci.scm b/guix/ci.scm
index 97a9847..6bc80ca 100644
--- a/guix/ci.scm
+++ b/guix/ci.scm
@@ -109,10 +109,7 @@
(map json->build (vector->list queue))))
(define* (latest-builds url #:optional (limit %query-limit)
- #:key
- evaluation
- system
- job)
+ #:key evaluation system job status)
"Return the latest builds performed by the CI server at URL. If EVALUATION
is an integer, restrict to builds of EVALUATION. If SYSTEM is true (a system
string such as \"x86_64-linux\"), restrict to builds for SYSTEM."
@@ -126,7 +123,9 @@ string such as \"x86_64-linux\"), restrict to builds for
SYSTEM."
(option "evaluation" evaluation
number->string)
(option "system" system)
- (option "job" job)))))
+ (option "job" job)
+ (option "status" status
+ number->string)))))
;; Note: Hydra does not provide a "derivation" field for entries in
;; 'latestbuilds', but Cuirass does.
(map json->build (vector->list latest))))