forked from lix-project/hydra
Merge pull request #1000 from DeterminateSystems/fixup/pr-998'
#998: Batch of fixups
This commit is contained in:
commit
ff7ecf50d9
|
@ -554,7 +554,7 @@
|
|||
su - hydra -c "hydra-create-user root --email-address 'alice@example.org' --password foobar --role admin"
|
||||
mkdir /run/jobset
|
||||
chmod 755 /run/jobset
|
||||
cp ${./t/api-test.nix} /run/jobset/default.nix
|
||||
cp ${./t/jobs/api-test.nix} /run/jobset/default.nix
|
||||
chmod 644 /run/jobset/default.nix
|
||||
chown -R hydra /run/jobset
|
||||
"""
|
||||
|
|
|
@ -2,12 +2,13 @@
|
|||
|
||||
use strict;
|
||||
use utf8;
|
||||
use Getopt::Long;
|
||||
use Hydra::Event;
|
||||
use Hydra::Event::BuildFinished;
|
||||
use Hydra::Helper::AddBuilds;
|
||||
use Hydra::Helper::Nix;
|
||||
use Hydra::Plugin;
|
||||
use Hydra::PostgresListener;
|
||||
use Getopt::Long;
|
||||
|
||||
STDERR->autoflush(1);
|
||||
STDOUT->autoflush(1);
|
||||
|
@ -49,7 +50,7 @@ sub runPluginsForEvent {
|
|||
for my $build ($db->resultset('Builds')->search(
|
||||
{ notificationpendingsince => { '!=', undef } }))
|
||||
{
|
||||
print STDERR "sending notifications for build $build->id...\n";
|
||||
print STDERR "sending notifications for build ${\$build->id}...\n";
|
||||
|
||||
|
||||
my $event = Hydra::Event::BuildFinished->new($build->id);
|
||||
|
@ -67,7 +68,7 @@ while (!$queued_only) {
|
|||
my $payload = $message->{"payload"};
|
||||
|
||||
eval {
|
||||
my $event = Hydra::Event::new_event($channelName, $message->{"payload"});
|
||||
my $event = Hydra::Event->new_event($channelName, $message->{"payload"});
|
||||
runPluginsForEvent($event);
|
||||
|
||||
1;
|
||||
|
|
Loading…
Reference in a new issue