Move archiving logs to a separate script

so that it can be run regardless of whether the rest of the
build succeeds.

Change-Id: I774a1c3e316222be3bff64f0b0f87b17d5a85246
This commit is contained in:
James E. Blair
2011-10-23 11:46:34 -04:00
parent c1600fa120
commit 1afbf13943
2 changed files with 6 additions and 9 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
for host in $HEAD_HOST ${COMPUTE_HOSTS//,/ }; do
cp /var/log/orchestra/rsyslog/$host/syslog $WORKSPACE/logs/$host-syslog.txt
done

View File

@@ -1,8 +1,4 @@
#!/bin/bash
set -x
#HEAD_HOST=${HEAD_HOST:-10.14.247.43}
#COMPUTE_HOSTS=${COMPUTE_HOSTS:-10.14.247.44,10.14.247.45}
#!/bin/bash -x
WORKSPACE=`pwd`
mkdir -p logs
@@ -46,7 +42,3 @@ done
echo "Jenkins: Executing build_bm_multi.sh."
./tools/build_bm_multi.sh
for host in $HEAD_HOST ${COMPUTE_HOSTS//,/ }; do
cp /var/log/orchestra/rsyslog/$host/syslog $WORKSPACE/logs/$host-syslog.txt
done