]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-docs: update the build script to build only, not publish
authorAlfredo Deza <adeza@redhat.com>
Wed, 16 Aug 2017 13:04:32 +0000 (09:04 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 16 Aug 2017 13:05:54 +0000 (09:05 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-docs/build/build

index f6762f0e4a408dbef095a4f65d448e0b90eac234..aaebd7ebc9befa1c8904b1ec8241a3b8e64a1ad1 100644 (file)
@@ -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