Remove image dependency on hydra.nixos.org

Also standardize the slack image size on 256 pixels.
This commit is contained in:
Casey Ransom 2020-09-01 15:06:16 -04:00
parent 405c52b589
commit 03be8ae7a1
2 changed files with 8 additions and 10 deletions

View file

@ -50,12 +50,11 @@ sub buildFinished {
my $room = $rooms{$roomId};
my @deps = grep { $_->id != $build->id } @{$room->{builds}};
my $imgBase = "http://hydra.nixos.org";
my $img =
$build->buildstatus == 0 ? "$imgBase/static/images/checkmark_16.png" :
$build->buildstatus == 2 ? "$imgBase/static/images/dependency_16.png" :
$build->buildstatus == 4 ? "$imgBase/static/images/cancelled_16.png" :
"$imgBase/static/images/error_16.png";
$build->buildstatus == 0 ? "$baseurl/static/images/checkmark_16.png" :
$build->buildstatus == 2 ? "$baseurl/static/images/dependency_16.png" :
$build->buildstatus == 4 ? "$baseurl/static/images/cancelled_16.png" :
"$baseurl/static/images/error_16.png";
my $msg = "";
$msg .= "<img src='$img'/> ";

View file

@ -127,12 +127,11 @@ sub buildFinished {
my $channel = $channels{$url};
my @deps = grep { $_->id != $build->id } @{$channel->{builds}};
my $imgBase = "http://hydra.nixos.org";
my $img =
$build->buildstatus == 0 ? "$imgBase/static/images/checkmark_256.png" :
$build->buildstatus == 2 ? "$imgBase/static/images/dependency_256.png" :
$build->buildstatus == 4 ? "$imgBase/static/images/cancelled_128.png" :
"$imgBase/static/images/error_256.png";
$build->buildstatus == 0 ? "$baseurl/static/images/checkmark_256.png" :
$build->buildstatus == 2 ? "$baseurl/static/images/dependency_256.png" :
$build->buildstatus == 4 ? "$baseurl/static/images/cancelled_256.png" :
"$baseurl/static/images/error_256.png";
my $color =
$build->buildstatus == 0 ? "good" :