Merge "scripts: scripts-library.sh: Fix location for log directory"

This commit is contained in:
Jenkins 2017-08-25 11:56:10 +00:00 committed by Gerrit Code Review
commit 265d75b673

View File

@ -125,7 +125,7 @@ function gate_job_exit_tasks {
# If this is a gate node from OpenStack-Infra Store all logs into the
# execution directory after gate run.
if [ "$GATE_EXIT_LOG_COPY" == true ]; then
GATE_LOG_DIR="$(dirname "${0}")/../logs"
GATE_LOG_DIR="${OSA_CLONE_DIR:-$(dirname $0)/..}/logs"
mkdir -p "${GATE_LOG_DIR}/host" "${GATE_LOG_DIR}/openstack"
rsync --archive --verbose --safe-links --ignore-errors /var/log/ "${GATE_LOG_DIR}/host" || true
rsync --archive --verbose --safe-links --ignore-errors /openstack/log/ "${GATE_LOG_DIR}/openstack" || true