]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create a ceph-installer-docs job
authorAlfredo Deza <adeza@redhat.com>
Tue, 23 Feb 2016 20:33:13 +0000 (15:33 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 23 Feb 2016 20:33:13 +0000 (15:33 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-installer-docs/build/build [new file with mode: 0644]
ceph-installer-docs/config/definitions/ceph-installer-docs.yml [new file with mode: 0644]

diff --git a/ceph-installer-docs/build/build b/ceph-installer-docs/build/build
new file mode 100644 (file)
index 0000000..55e3d7f
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+
+# create the docs build with tox
+tox -rv -e docs
+
+# publish docs to http://docs.ceph.com/docs/ceph-installer
+rsync -auv --delete .tox/docs/tmp/html/* /var/ceph-installer/docs/
diff --git a/ceph-installer-docs/config/definitions/ceph-installer-docs.yml b/ceph-installer-docs/config/definitions/ceph-installer-docs.yml
new file mode 100644 (file)
index 0000000..fc7bdb5
--- /dev/null
@@ -0,0 +1,36 @@
+- job:
+    name: ceph-installer-docs
+    node: docs
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-installer: docs build'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-installer
+    logrotate:
+      daysToKeep: -1
+      numToKeep: 10
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    triggers:
+      - github
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-installer
+          branches:
+            - master
+          browser: auto
+          skip-tag: true
+          timeout: 20
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build