GithubStatus: Allow config to specify the integration description and context
This commit is contained in:
parent
e78b9fd4ee
commit
a6d9201947
|
@ -40,8 +40,8 @@ sub common {
|
||||||
{
|
{
|
||||||
state => $finished ? toGithubState($b->buildstatus) : "pending",
|
state => $finished ? toGithubState($b->buildstatus) : "pending",
|
||||||
target_url => "$baseurl/build/" . $b->id,
|
target_url => "$baseurl/build/" . $b->id,
|
||||||
description => "Hydra build #" . $b->id . " of $jobName",
|
description => $conf->{description} // "Hydra build #" . $b->id . " of $jobName",
|
||||||
context => "continuous-integration/hydra:" . $jobName . $contextTrailer
|
context => $conf->{context} // "continuous-integration/hydra:" . $jobName . $contextTrailer
|
||||||
});
|
});
|
||||||
my $inputs_cfg = $conf->{inputs};
|
my $inputs_cfg = $conf->{inputs};
|
||||||
my @inputs = defined $inputs_cfg ? ref $inputs_cfg eq "ARRAY" ? @$inputs_cfg : ($inputs_cfg) : ();
|
my @inputs = defined $inputs_cfg ? ref $inputs_cfg eq "ARRAY" ? @$inputs_cfg : ($inputs_cfg) : ();
|
||||||
|
|
Loading…
Reference in a new issue