From 0695c989b6dedc99a87d927c9f99cdc4210c2ce3 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 2 Dec 2014 09:01:16 -0600 Subject: [PATCH] port the ceph-deploy-docs job to yaml Signed-off-by: Andrew Schoen --- ceph-deploy-docs/build/build | 24 +++++++++++++ .../config/definitions/ceph-deploy-docs.yml | 36 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 ceph-deploy-docs/build/build create mode 100644 ceph-deploy-docs/config/definitions/ceph-deploy-docs.yml diff --git a/ceph-deploy-docs/build/build b/ceph-deploy-docs/build/build new file mode 100644 index 00000000..ca30c950 --- /dev/null +++ b/ceph-deploy-docs/build/build @@ -0,0 +1,24 @@ +#!/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/ diff --git a/ceph-deploy-docs/config/definitions/ceph-deploy-docs.yml b/ceph-deploy-docs/config/definitions/ceph-deploy-docs.yml new file mode 100644 index 00000000..84de0c85 --- /dev/null +++ b/ceph-deploy-docs/config/definitions/ceph-deploy-docs.yml @@ -0,0 +1,36 @@ +- 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 -- 2.39.5