diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index c40e2fa0..e21128f5 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -240,6 +240,8 @@ sub keep : Chained('build') PathPart Args(1) { die unless $newStatus == 0 || $newStatus == 1; + registerRoot $build->outpath if $newStatus == 1; + $c->model('DB')->schema->txn_do(sub { $build->resultInfo->update({keep => int $newStatus}); });