]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
port the ceph-deploy-docs job to yaml 34/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 2 Dec 2014 15:01:16 +0000 (09:01 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 2 Dec 2014 15:01:16 +0000 (09:01 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-deploy-docs/build/build [new file with mode: 0644]
ceph-deploy-docs/config/definitions/ceph-deploy-docs.yml [new file with mode: 0644]

diff --git a/ceph-deploy-docs/build/build b/ceph-deploy-docs/build/build
new file mode 100644 (file)
index 0000000..ca30c95
--- /dev/null
@@ -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 (file)
index 0000000..84de0c8
--- /dev/null
@@ -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