fix reference parsing in the unified publishing job for tagged releases

Fix an off-by-one error in the publishing job that made the job try to
set up doc/publish/tags/1.12.0 instead of doc/publish/1.12.0 (and fail
because the intermediate tags directory did not exist).

See
http://logs.openstack.org/7e/7e88422ffd84664bbdcf07c03428694d26ed3897/release/openstackdocstheme-docs-unified-ubuntu-xenial/26e912a/console.html#_2017-07-03_11_08_11_042419
for an example of a failure.

Change-Id: Iacbfdab106367e33f267665cd9463fc4789dcfba
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-07-03 07:44:49 -04:00
parent 7b7023cc02
commit 0518a27ee2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
# This job should not be configured to run for
# pre-releases, so if we have a tag we want to use it as
# the publishing location.
tag=$(echo $ZUUL_REFNAME | cut -d/ -f2-)
tag=$(echo $ZUUL_REFNAME | cut -d/ -f3-)
branch_name=""
else
# If the ref wasn't a tag, assume it is a branch.