diff options
author | Christopher Baines <mail@cbaines.net> | 2020-05-19 17:39:14 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2020-05-19 17:39:14 +0100 |
commit | 870ba33917f942d51c3f1b6f74f8287af3bb9c9c (patch) | |
tree | ee5856682bc42eb68b7b0e846241a8d900c3f580 /scripts/guix-build-coordinator.in | |
parent | cde5c17bf681c394e8878e9400dd1c9d477e3f22 (diff) | |
download | build-coordinator-870ba33917f942d51c3f1b6f74f8287af3bb9c9c.tar build-coordinator-870ba33917f942d51c3f1b6f74f8287af3bb9c9c.tar.gz |
Make it possible to show builds for an output
Diffstat (limited to 'scripts/guix-build-coordinator.in')
-rw-r--r-- | scripts/guix-build-coordinator.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/guix-build-coordinator.in b/scripts/guix-build-coordinator.in index e5493de..5c00d7a 100644 --- a/scripts/guix-build-coordinator.in +++ b/scripts/guix-build-coordinator.in @@ -336,6 +336,26 @@ processed?: ~A no-build-submitted-response) (simple-format #t "build submitted as ~A\n" (assoc-ref response "build-submitted"))))))))) + (("output" rest ...) + (let ((opts (parse-options (append %base-options + %client-options) + (append %base-option-defaults + %client-option-defaults) + rest))) + (match (assq-ref opts 'arguments) + ((output) + (let ((details (request-output-details (assq-ref opts 'coordinator) + output))) + (for-each + (lambda (build) + (simple-format + #t "~A:\n result: ~A\n processed: ~A\n priority: ~A\n derivation: ~A\n\n" + (assoc-ref build "uuid") + (assoc-ref build "result") + (assoc-ref build "processed") + (assoc-ref build "priority") + (assoc-ref build "derivation"))) + (vector->list (assoc-ref details "builds")))))))) (("agent" "new" rest ...) (let ((opts (parse-options (append %agent-options %client-options |