From d676c91bd50611969babc9f4e691502204ad741b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 12 Sep 2017 18:42:18 +0200 Subject: [PATCH] Return Builds.drvpath in the JSON API E.g. curl -H 'Accept: application/json' http://127.0.0.4/build/3772858 | jq -r .drvpath /nix/store/97vla79lavlcsk8milskr06rfm34bskx-patchelf-0.8pre843_f4522f4.drv --- src/lib/Hydra/Schema/Builds.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra/Schema/Builds.pm b/src/lib/Hydra/Schema/Builds.pm index f800c41a..1c80f710 100644 --- a/src/lib/Hydra/Schema/Builds.pm +++ b/src/lib/Hydra/Schema/Builds.pm @@ -619,7 +619,8 @@ my %hint = ( 'system', 'priority', 'buildstatus', - 'releasename' + 'releasename', + 'drvpath', ], relations => { jobsetevals => 'id'