add api endpoint: /build/<id>/constituents

Returns a list of constituent builds
This commit is contained in:
Graham Christensen
2021-09-24 15:52:46 -04:00
parent 99161c7c53
commit c60c8d10ea
4 changed files with 111 additions and 0 deletions

26
t/jobs/aggregate.nix Normal file
View File

@ -0,0 +1,26 @@
with import ./config.nix;
{
a =
mkDerivation {
name = "empty-dir-a";
builder = ./empty-dir-builder.sh;
};
b =
mkDerivation {
name = "empty-dir-b";
builder = ./empty-dir-builder.sh;
};
aggregate =
mkDerivation {
name = "aggregate";
builder = ./empty-dir-builder.sh; # doesn't matter, just needs to pass a build
_hydraAggregate = true;
constituents = [
"a"
"b"
];
};
}