forked from lix-project/hydra
Project result: add a supportsDynamicRunCommand helper
This commit is contained in:
parent
38514ae494
commit
daa6864a58
|
@ -75,7 +75,7 @@ sub isBuildEligibleForDynamicRunCommand {
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (! $build->project->enable_dynamic_run_command) {
|
||||
if (! $build->project->supportsDynamicRunCommand()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -246,6 +246,12 @@ sub builds {
|
|||
return $self->jobsets->related_resultset('builds');
|
||||
};
|
||||
|
||||
sub supportsDynamicRunCommand {
|
||||
my ($self) = @_;
|
||||
|
||||
return $self->get_column('enable_dynamic_run_command') == 1;
|
||||
}
|
||||
|
||||
sub as_json {
|
||||
my $self = shift;
|
||||
|
||||
|
|
Loading…
Reference in a new issue