mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
ci: Add build products support.
* guix/ci.scm (<build-product>): New json mapping, (<build)[products]: new field.
This commit is contained in:
parent
b64ca5dadc
commit
4e05bbb093
1 changed files with 15 additions and 1 deletions
16
guix/ci.scm
16
guix/ci.scm
|
@ -52,13 +52,27 @@ (define-module (guix ci)
|
|||
;;;
|
||||
;;; Code:
|
||||
|
||||
(define-json-mapping <build-product> make-build-product
|
||||
build-product?
|
||||
json->build-product
|
||||
(type build-product-type)
|
||||
(file-size build-product-file-size)
|
||||
(path build-product-path))
|
||||
|
||||
(define-json-mapping <build> make-build build?
|
||||
json->build
|
||||
(id build-id "id") ;integer
|
||||
(derivation build-derivation) ;string | #f
|
||||
(system build-system) ;string
|
||||
(status build-status "buildstatus" ) ;integer
|
||||
(timestamp build-timestamp)) ;integer
|
||||
(timestamp build-timestamp) ;integer
|
||||
(products build-products "buildproducts" ;<build-product>*
|
||||
(lambda (products)
|
||||
(map json->build-product
|
||||
;; Before Cuirass 3db603c1, #f is always returned.
|
||||
(if products
|
||||
(vector->list products)
|
||||
'())))))
|
||||
|
||||
(define-json-mapping <checkout> make-checkout checkout?
|
||||
json->checkout
|
||||
|
|
Loading…
Reference in a new issue