From c54aaac89c3e091c392c39e186e901c0f1ebb137 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 16 Aug 2017 09:04:32 -0400 Subject: [PATCH] ceph-pr-docs: update the build script to build only, not publish Signed-off-by: Alfredo Deza --- ceph-pr-docs/build/build | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/ceph-pr-docs/build/build b/ceph-pr-docs/build/build index f6762f0e..aaebd7eb 100644 --- a/ceph-pr-docs/build/build +++ b/ceph-pr-docs/build/build @@ -2,30 +2,12 @@ set -ex -# This job is meant to be triggered from a Github Pull Request, only when the -# job is executed in that way a few "special" variables become available. So -# this build script tries to use those first but then it will try to figure it -# out using Git directly so that if triggered manually it can attempt to -# actually work. -PR_ID=$ghprbPullId - -# fallback to just using 'manual' if that ID is not available, for manually -# triggered builds -if [ -z "$ghprbPullId" ]; then - PR_ID="manual" -fi +# make sure any shaman list file is removed. At some point if all nodes +# are clean this will not be needed. +sudo rm -f /etc/apt/sources.list.d/shaman* +# Ceph doc build deps, Ubuntu only because ditaa is not packaged for CentOS +sudo apt-get update +sudo apt-get install -y gcc python-dev python-pip python-virtualenv libxml2-dev libxslt-dev doxygen graphviz ant ditaa python-sphinx ./admin/build-doc - -# publish docs to http://docs.ceph.com/ceph-prs/$PR_ID/ -mkdir -p "/var/ceph-prs/$PR_ID" -rsync -auv --delete build-doc/output/html/* "/var/ceph-prs/$PR_ID/" - -set +e -set +x -echo -echo "Docs available to preview at:" -echo -echo " http://docs.ceph.com/ceph-prs/$PR_ID/" -echo -- 2.39.5