Allow testing against Ansible dev branch
Adds support for a new environment variable that will trigger testing against the upstream, development version of Ansible. This will help us catch breakages in Ansible that would affect the OpenStack modules. A new, non-voting job is expected to set this variable. Change-Id: I7ac84487dd323ef95191fab966244da586b37cd3
This commit is contained in:
parent
d097959727
commit
a7fe2520ae
@ -19,9 +19,21 @@ cd $SHADE_DIR
|
||||
sudo chown -R jenkins:stack $SHADE_DIR
|
||||
|
||||
echo "Running shade Ansible test suite"
|
||||
set +e
|
||||
sudo -E -H -u jenkins tox -eansible
|
||||
EXIT_CODE=$?
|
||||
set -e
|
||||
|
||||
if [ ${SHADE_ANSIBLE_DEV:-0} -eq 1 ]
|
||||
then
|
||||
# Use the upstream development version of Ansible
|
||||
set +e
|
||||
sudo -E -H -u jenkins tox -eansible -- -d
|
||||
EXIT_CODE=$?
|
||||
set -e
|
||||
else
|
||||
# Use the release version of Ansible
|
||||
set +e
|
||||
sudo -E -H -u jenkins tox -eansible
|
||||
EXIT_CODE=$?
|
||||
set -e
|
||||
fi
|
||||
|
||||
|
||||
exit $EXIT_CODE
|
||||
|
Loading…
x
Reference in New Issue
Block a user