From 4e5201f48bbffd655a37ea7aeefdb2a975886dfc Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 5 Jun 2013 17:07:19 -0700 Subject: [PATCH] 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 Approved: James E. Blair Reviewed-by: Clark Boylan Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/run-docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/jenkins/files/slave_scripts/run-docs.sh b/modules/jenkins/files/slave_scripts/run-docs.sh index 10823f3bf9..f227a1e7cd 100755 --- a/modules/jenkins/files/slave_scripts/run-docs.sh +++ b/modules/jenkins/files/slave_scripts/run-docs.sh @@ -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