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

diff --git a/ceph-installer-docs-pull-requests/build/build b/ceph-installer-docs-pull-requests/build/build
new file mode 100644 (file)
index 0000000..8ac1799
--- /dev/null
@@ -0,0 +1,8 @@
+#!/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
diff --git a/ceph-installer-docs-pull-requests/config/definitions/ceph-installer-docs-pull-requests.yml b/ceph-installer-docs-pull-requests/config/definitions/ceph-installer-docs-pull-requests.yml
new file mode 100644 (file)
index 0000000..80a02a9
--- /dev/null
@@ -0,0 +1,53 @@
+- job:
+    name: ceph-installer-docs
+    node: small && (centos7 || trusty)
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-installer: docs pull requests'
+    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
+
+    parameters:
+      - string:
+          name: sha1
+          description: "A pull request ID, like 'origin/pr/72/head'"
+
+    triggers:
+      - github-pull-request:
+          allow-whitelist-orgs-as-admins: true
+          org-list:
+            - ceph
+          trigger-phrase: ''
+          only-trigger-phrase: false
+          github-hooks: true
+          permit-all: true
+          auto-close-on-fail: false
+          status-context: "Docs"
+          started-status: "checking if docs build"
+          success-status: "docs built successfully "
+          failure-status: "docs could not build correctly"
+
+    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