Symlink /openstack/log so gate logs can be published
Ant needs a path that is local to the directory from which it operates. To be able to publish our logs, we need to symlink /openstack/log to /home/jenkins/workspace/os-ansible-deployment-dvsm-check-commit/logs. This also allows us to remove the log publisher we wrote and just use the devstack-logs publisher instead. Related-Bug: 1425482 Depends-On: If94e6b97c159000c83fadc6e4dd72d56ee90d3b9 Change-Id: Iee055beb853cbb76a073c8060d6920d317f5bd64
This commit is contained in:
parent
96256b93f4
commit
4d675bf7f5
@ -16,7 +16,6 @@
|
||||
## Shell Opts ----------------------------------------------------------------
|
||||
set -e -u -v +x
|
||||
|
||||
|
||||
## Variables -----------------------------------------------------------------
|
||||
export ANSIBLE_DISABLE_COLOR=${ANSIBLE_DISABLE_COLOR:-"yes"}
|
||||
export BOOTSTRAP_ANSIBLE=${BOOTSTRAP_ANSIBLE:-"yes"}
|
||||
@ -39,12 +38,12 @@ export TEMPEST_SCRIPT_PARAMETERS=${TEMPEST_SCRIPT_PARAMETERS:-"commit_aio"}
|
||||
export MAX_RETRIES=${MAX_RETRIES:-"1"}
|
||||
# limit forks for gate check
|
||||
export FORKS=${FORKS:-10}
|
||||
export SYMLINK_DIR=${SYMLINK_DIR:-"$(pwd)/logs"}
|
||||
|
||||
|
||||
## Functions -----------------------------------------------------------------
|
||||
info_block "Checking for required libraries." 2> /dev/null || source $(dirname ${0})/scripts-library.sh
|
||||
|
||||
|
||||
## Main ----------------------------------------------------------------------
|
||||
# Get initial host information and reset verbosity
|
||||
set +x && get_instance_info && set -x
|
||||
@ -79,4 +78,6 @@ if [ "${RUN_TEMPEST}" == "yes" ]; then
|
||||
source $(dirname ${0})/run-tempest.sh
|
||||
fi
|
||||
|
||||
ln -s /openstack/log $SYMLINK_DIR
|
||||
|
||||
exit_success
|
||||
|
Loading…
Reference in New Issue
Block a user