Use generic user for both zuul v2 and v3

Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'.
Using $USER solves it for both cases.

Change-Id: Ib83267ef75f91fb8f95af312d644ebe29c6306c8
This commit is contained in:
zhongjun 2017-10-17 10:37:49 +08:00
parent 1bee869b2c
commit 9b9cc821dd
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export MANILACLIENT_CONF="$MANILACLIENT_DIR/etc/manilaclient/manilaclient.conf"
cd $MANILACLIENT_DIR
# Give permissions
sudo chown -R jenkins:stack .
sudo chown -R $USER:stack .
# Create manilaclient config file
touch $MANILACLIENT_CONF
@ -98,7 +98,7 @@ set +o errexit
CONCURRENCY=${CONCURRENCY:-8}
# Run functional tests
sudo -H -u jenkins tox -e functional -v -- --concurrency=$CONCURRENCY
sudo -H -u $USER tox -e functional -v -- --concurrency=$CONCURRENCY
EXIT_CODE=$?
if [ -d ".testrepository" ] ; then