Disable branch root-marker

At branch creation post jobs are run and they create the root-marker -
but we're not ready yet. Uncomment these for now.

With stable/ocata creation, these root-markers now do not allow us to
publish new draft guides. We need to manually remove root-marker files
from the servers to update them. Note: root-marker protect directories
so that they are not deleted.

Change-Id: I05ad0721404d476cc1a72a8a9cbb177d206cba27
This commit is contained in:
Andreas Jaeger 2017-03-24 16:35:13 +01:00
parent bb9ac4d955
commit 3d64bdc261
2 changed files with 13 additions and 8 deletions

View File

@ -47,17 +47,20 @@ done
# This includes guides that we publish from stable branches
# as versioned like the networking-guide.
for guide in ha-guide-draft networking-guide config-reference; do
TARGET="draft/$guide"
if [[ ${PDF_TARGETS[*]} =~ $guide ]]; then
tools/build-rst.sh doc/$guide --build build \
--target "draft/$guide" $LINKCHECK $PDF_OPTION
--target "$TARGET" $LINKCHECK $PDF_OPTION
else
tools/build-rst.sh doc/$guide --build build \
--target "draft/$guide" $LINKCHECK
--target "$TARGET" $LINKCHECK
fi
# For stable branches, we need to mark the specific guides.
if [ "$ZUUL_REFNAME" != "master" ] ; then
echo $MARKER_TEXT > publish-docs/draft/$guide/.root-marker
fi
# TODO(jaegerandi): Enable for stable branches after branch is
# created:
#if [ "$ZUUL_REFNAME" != "master" ] ; then
# echo $MARKER_TEXT > publish-docs/draft/$TARGET/.root-marker
#fi
done
tools/build-install-guides-rst.sh $LINKCHECK $PDF_OPTION

View File

@ -71,7 +71,9 @@ for tag in $TAGS; do
--tag ${tag} --target "$TARGET" $LINKCHECK $PDF_OPTION
fi
# Add this for stable branches
if [ "$ZUUL_REFNAME" != "master" ] ; then
echo $MARKER_TEXT > publish-docs/$TARGET/.root-marker
fi
# TODO(jaegerandi): Enable for stable branches after branch is
# created:
# if [ "$ZUUL_REFNAME" != "master" ] ; then
# echo $MARKER_TEXT > publish-docs/$TARGET/.root-marker
# fi
done