finish making the dynamic hooks only run on project & jobset agreement
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user