Fix run-docs as a gate job.

If run-docs is running as a gate script, ZUUL_REFNAME is not set.
We also don't care where the docs end up so do nothing (treat as
master).

Change-Id: I8f5a7ba4c6ab714765871c60b5e587fcb4dece41
Reviewed-on: https://review.openstack.org/31889
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2013-06-05 17:07:19 -07:00 committed by Jenkins
parent c108532b32
commit 4e5201f48b

View File

@ -28,7 +28,7 @@ export HUDSON_PUBLISH_DOCS=1
tox -e$venv -- python setup.py build_sphinx
result=$?
if [ $ZUUL_REFNAME == "master" ] ; then
if [ -z "$ZUUL_REFNAME" ] || [ "$ZUUL_REFNAME" == "master" ] ; then
: # Leave the docs where they are.
elif `echo $ZUUL_REFNAME | grep refs/tags/ >/dev/null` ; then
# Put tagged releases in proper location. All tagged builds get copied to