From 9b78b005de7b59e63ae1418ef6aa95a6be846d68 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 16 Sep 2016 09:57:27 +0200 Subject: [PATCH] Add marker file Add marker files in the root of our tree. This is needed for publishing in the future: This is so that we can create a list of directories to ignore when we rsync documentation builds to a publishing site. Some builds are published as subdirectories underneath the results of superior builds. This allows those superior builds to be rsynced without removing the other builds that were published under them. Change-Id: I96a67f022f9fef0794a8a25b6e397177e30d1f5f --- tools/build-index.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/build-index.sh b/tools/build-index.sh index 20ab0f1c3..38efcde36 100755 --- a/tools/build-index.sh +++ b/tools/build-index.sh @@ -43,4 +43,9 @@ if [ "$PUBLISH" = "publish" ] ; then rsync -a www/static/ publish-docs/api-ref/ # Don't publish this file rm publish-docs/api-ref/www-index.html + + # This marker is needed for infra publishing + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" + echo $MARKER_TEXT > publish-docs/api-ref/.root-marker + fi