Project: delete the .jobsets jobset if project is no longer declarative

"No longer declarative" as defined by the "Edit project" page is an empty spec
file.
This commit is contained in:
Cole Helbling 2021-05-05 14:03:51 -07:00
parent 886e6f85e4
commit bd9c52dbd0
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -169,6 +169,8 @@ sub updateProject {
, emailoverride => "" , emailoverride => ""
, triggertime => time , triggertime => time
}); });
} else {
$project->jobsets->search({ name => ".jobsets" })->delete;
} }
} }