GithubStatus: Include the full job name and build ID in the context.

[?]
Apr 12, 2016, 7:19 PM
WIM6VQOHCPKPF5YL62IRLN4C3ZWUOKOPR534O7TQ7V2244FSAVVQC

Dependencies

  • [2] NSRWW6LC Add a plugin to interact with the github status API.

Change contents

  • replacement in src/lib/Hydra/Plugin/GithubStatus.pm at line 32
    [2.973][2.973:1306]()
    my $body = encode_json(
    {
    state => $finished ? toGithubState($b->buildstatus) : "pending",
    target_url => "$baseurl/build/" . $b->id,
    description => "Hydra build #" . $b->id . " of $jobName",
    context => "continuous-integration/hydra"
    });
    [2.973]
    [2.1306]
  • edit in src/lib/Hydra/Plugin/GithubStatus.pm at line 36
    [2.1399]
    [2.1399]
    my $contextTrailer = $conf->{excludeBuildFromContext} ? "" : (":" . $b->id);
    my $body = encode_json(
    {
    state => $finished ? toGithubState($b->buildstatus) : "pending",
    target_url => "$baseurl/build/" . $b->id,
    description => "Hydra build #" . $b->id . " of $jobName",
    context => "continuous-integration/hydra:" . $jobName . $contextTrailer
    });