finish making the dynamic hooks only run on project & jobset agreement

This commit is contained in:
Graham Christensen
2021-12-15 12:36:19 -05:00
parent aef11685a0
commit 0810f5debc
2 changed files with 11 additions and 5 deletions

View File

@ -71,9 +71,15 @@ sub isBuildEligibleForDynamicRunCommand {
return 0;
}
if ($build->jobset->enable_dynamic_run_command) {
return 1;
if (! $build->jobset->enable_dynamic_run_command) {
return 0;
}
if (! $build->project->enable_dynamic_run_command) {
return 0;
}
return 1;
}
return 0;