4a7cd7063f
We need to create a directory to allow publishing of logs. Change-Id: Ieeac5d236b698bedaccb8b5f0bb16f0de9df9386 Backport: Liberty Partially-Implements: blueprint multinode-gate
28 lines
729 B
Bash
Executable File
28 lines
729 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
|
|
|
# TODO(SamYaple): This check could be much better, but should work for now
|
|
if [[ $(hostname | grep rax) ]]; then
|
|
export DEV="xvde"
|
|
else
|
|
echo "Assuming this is an hpcloud box"
|
|
export DEV="vdb"
|
|
fi
|
|
|
|
# Just for mandre :)
|
|
if [[ ! -f /etc/sudoers.d/jenkins ]]; then
|
|
echo "jenkins ALL=(:docker) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/jenkins
|
|
fi
|
|
|
|
# This creates a logs directory for the devstack logs publisher
|
|
mkdir logs
|
|
# We symlink the logs dir to a known location
|
|
ln -s $(pwd)/logs /tmp/logs
|
|
|
|
distro=$(awk -F'[="]'+ '/^ID/ {print tolower($2); exit}' /etc/*-release)
|
|
exec tests/setup_${distro}.sh
|