diff --git a/Tests/cibuild b/Tests/cibuild index 60fd38ba74..efb28bdec6 100755 --- a/Tests/cibuild +++ b/Tests/cibuild @@ -20,6 +20,8 @@ rake server:stop # Build & Publish Docs if [ -n $DOCS_DESTINATION ]; then VERSION=`echo $GIT_BRANCH|sed -e 's/origin\///'` - echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'" - rake docs:publish[$VERSION,$DOCS_DESTINATION] + if [ -n $VERSION ]; then + echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'" + rake docs:publish[$VERSION,$DOCS_DESTINATION] + fi fi