--- /dev/null
+#!/bin/bash
+
+set -ex
+
+# Create the virtualenv
+virtualenv venv
+. venv/bin/activate
+
+# Define and ensure the PIP cache
+PIP_SDIST_INDEX="$HOME/.cache/pip"
+mkdir -p $PIP_SDIST_INDEX
+
+# Install the package by trying with the cache first, otherwise doing a download only, and then
+# trying to install from the cache again.
+if ! venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox; then
+ venv/bin/pip install --download-directory="$PIP_SDIST_INDEX" tox
+ venv/bin/pip install --find-links="file://$PIP_SDIST_INDEX" --no-index tox
+fi
+
+
+# create the docs build with tox
+tox -rv -e docs
+# publish docs to ceph.com/ceph-deploy/docs
+rsync -auv --delete -e "ssh -i /home/jenkins-build/.ssh/cephdocs_id_rsa -o StrictHostKeyChecking=no" .tox/docs/tmp/html/* cephdocs@ceph.newdream.net:/home/ceph_site/ceph.com/ceph-deploy/docs/
--- /dev/null
+- job:
+ name: ceph-deploy-docs
+ node: gitbuilder-cdep-deb-cloud-precise-amd64-basic
+ project-type: freestyle
+ defaults: global
+ disabled: false
+ display-name: 'ceph-deploy: docs build'
+ concurrent: false
+ quiet-period: 5
+ block-downstream: false
+ block-upstream: false
+ retry-count: 3
+ properties:
+ - github:
+ url: https://github.com/ceph/ceph-deploy
+ logrotate:
+ daysToKeep: -1
+ numToKeep: -1
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+
+ triggers:
+ - pollscm: "* * * * *"
+
+ scm:
+ - git:
+ url: https://github.com/ceph/ceph-deploy.git
+ branches:
+ - master
+ browser: githubweb
+ browser-url: https://github.com/ceph/ceph-deploy.git
+ timeout: 20
+
+ builders:
+ - shell:
+ !include-raw ../../build/build