From 834ac67a9337ba66414ec7c94c5bb666c8e896be Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 14 Jun 2017 09:19:20 -0400 Subject: [PATCH] ceph-lvm-docs: create job for automatic docs on merges to stable branches Signed-off-by: Alfredo Deza --- ceph-lvm-docs/build/build | 18 +++++++++ .../config/definitions/ceph-lvm-docs.yml | 39 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ceph-lvm-docs/build/build create mode 100644 ceph-lvm-docs/config/definitions/ceph-lvm-docs.yml diff --git a/ceph-lvm-docs/build/build b/ceph-lvm-docs/build/build new file mode 100644 index 000000000..187fee4bb --- /dev/null +++ b/ceph-lvm-docs/build/build @@ -0,0 +1,18 @@ +#!/bin/bash + +set -ex + +# the following two methods exist in scripts/build_utils.sh +pkgs=( "tox" ) +install_python_packages "pkgs[@]" + +# create the docs build with tox +$VENV/tox -rv -e docs + +# publish docs to http://docs.ceph.com/ceph-lvm/$BRANCH/ create +# a `$BRANCH` dir because the project has stable branches that will +# publish docs that might be different from other versions (similar, +# but not exactly the same to what the Ceph project does) +mkdir -p "/var/ceph-lvm/docs/$BRANCH" +rsync -auv --delete .tox/docs/tmp/html/* "/var/ceph-lvm/docs/$BRANCH/" + diff --git a/ceph-lvm-docs/config/definitions/ceph-lvm-docs.yml b/ceph-lvm-docs/config/definitions/ceph-lvm-docs.yml new file mode 100644 index 000000000..440108651 --- /dev/null +++ b/ceph-lvm-docs/config/definitions/ceph-lvm-docs.yml @@ -0,0 +1,39 @@ +- job: + name: ceph-lvm-docs + node: docs + project-type: freestyle + defaults: global + display-name: 'ceph-lvm: docs build' + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + properties: + - github: + url: https://github.com/ceph/ceph-lvm + logrotate: + daysToKeep: -1 + numToKeep: 10 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + triggers: + - github + + scm: + - git: + url: https://github.com/ceph/ceph-lvm + branches: + - master + # as more stable branches are published, they need to be + # added here + #- stable-1.0 + browser: auto + skip-tag: true + timeout: 20 + + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/build -- 2.47.3