Don't hardcode /home/jenkins

/home/jenkins shouldn't be hardcoded as it will likely fail when running
this script locally when using a different user. Just use $HOME instead
as is already done elsewhere in the script.

Change-Id: I41d6cd5b3878b3ca1e1311cd6b74962c22b76a54
This commit is contained in:
James Slagle 2017-02-21 20:18:09 -05:00
parent 4a4c8a1c76
commit d951f655f6
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ sudo chown root:root /root/.ssh/authorized_keys
# TODO(bkero): Use an ansible role to create this file
sudo yum install -y qemu-img
qemu-img create -f qcow2 /home/jenkins/overcloud-full.qcow2 1G
qemu-img create -f qcow2 $HOME/overcloud-full.qcow2 1G
# Bootstrap the subnodes
$TRIPLEO_CI_DIR/tripleo-ci/scripts/tripleo.sh --bootstrap-subnodes 2>&1 | sudo dd of=/var/log/bootstrap-subnodes.log || (tail -n 50 /var/log/bootstrap-subnodes.log && false)