more usability feedback
This commit is contained in:
parent
79a20a01df
commit
316117a5a2
1 changed files with 8 additions and 0 deletions
|
@ -44,6 +44,14 @@ EOF
|
|||
# Set ownership to jenkins
|
||||
chown -R jenkins $CUR_DIR
|
||||
|
||||
# Make sure this directory is accessible to jenkins
|
||||
if ! su -c "ls $CUR_DIR" jenkins; then
|
||||
echo "Your devstack directory is not accessible by jenkins."
|
||||
echo "There is a decent chance you are trying to run this from a directory in /root."
|
||||
echo "If so, try moving devstack elsewhere (eg. /opt/devstack)."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set up jobs symlink
|
||||
if [ ! -h /var/lib/jenkins/jobs ]; then
|
||||
echo "Installing jobs symlink"
|
||||
|
|
Loading…
Reference in a new issue