webhook progress

This commit is contained in:
David Brown 2016-06-27 12:31:00 +01:00
parent 44889a1b2f
commit a359e16ae9
2 changed files with 8 additions and 5 deletions

View file

@ -3,6 +3,7 @@
use strict;
use warnings;
use POSIX "strftime";
use CGI qw(:standard escapeHTML);
@ -27,5 +28,7 @@ print header(),
open(LOG, ">>/tmp/postpush.log") or die "Could not create postpush.log";
flock(LOG, 2) or die "Could not lock postpush.log";
printf LOG "Repository $repo, branch $branch, name $name.\n";
printf LOG strftime("%Y/%m/%d %H.%M.%S", localtime), " Repository $repo, branch $branch, name $name.\n";
close(LOG);
system "ssh root@oberon perl vishap/voc/src/tools/testcoordinator/buildall.pl >/tmp/buildall.log &";