aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2009-08-04 21:22:42 +0000
committerGustavo De Nardin <spuk@mandriva.org>2009-08-04 21:22:42 +0000
commit394cecd3d50953b991d80497fd1430656eede067 (patch)
tree7cc0ea0d8b8ce692a8137593b9da9f1091700de6
parent5d35a87d145cb5aef7a413bd3f94be2fd761dda8 (diff)
downloadiurt-394cecd3d50953b991d80497fd1430656eede067.tar
iurt-394cecd3d50953b991d80497fd1430656eede067.tar.gz
iurt-394cecd3d50953b991d80497fd1430656eede067.tar.bz2
iurt-394cecd3d50953b991d80497fd1430656eede067.tar.xz
iurt-394cecd3d50953b991d80497fd1430656eede067.zip
Save the remote bot command output to botcmd.log in the remote log dir. So
it will be fetched with the rest of the logs in case of build failure.
-rwxr-xr-xulri5
1 files changed, 3 insertions, 2 deletions
diff --git a/ulri b/ulri
index c9f2990..e585013 100755
--- a/ulri
+++ b/ulri
@@ -635,7 +635,8 @@ foreach my $prefix (sort keys %pkg_tree) {
# Copy packages to build node
#
- next if ssh($remote, "mkdir -p $prefix_dir");
+ # create also the log dir for botcmd.log
+ next if ssh($remote, "mkdir -p $prefix_dir/log");
my $pkgs = "";
my $ok = 1;
foreach my $srpm (@$srpms) {
@@ -673,7 +674,7 @@ foreach my $prefix (sort keys %pkg_tree) {
$cmd =~ s!__MEDIA__!$media_to_add!g;
plog('DEBUG', "Build $pkgs");
- ssh($remote, "$cmd $pkgs > $temp &");
+ ssh($remote, "'$cmd $pkgs | tee $prefix_dir/log/botcmd.log' > $temp &");
# wait 10 seconds or until we have the log file
# plus 20 seconds if it timeouts.