]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-docs-prs: create a job for building docs on prs 679/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 13 Apr 2017 16:56:42 +0000 (12:56 -0400)
committerAlfredo Deza <adeza@redhat.com>
Thu, 13 Apr 2017 17:21:00 +0000 (13:21 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-ansible-docs-prs/build/build [new file with mode: 0644]
ceph-ansible-docs-prs/config/definitions/ceph-ansible-docs-prs.yml [new file with mode: 0644]

diff --git a/ceph-ansible-docs-prs/build/build b/ceph-ansible-docs-prs/build/build
new file mode 100644 (file)
index 0000000..50c9f92
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "tox" )
+install_python_packages "pkgs[@]"
+
+cd $WORKSPACE/docs/
+$VENV/tox -rv
diff --git a/ceph-ansible-docs-prs/config/definitions/ceph-ansible-docs-prs.yml b/ceph-ansible-docs-prs/config/definitions/ceph-ansible-docs-prs.yml
new file mode 100644 (file)
index 0000000..e3ef840
--- /dev/null
@@ -0,0 +1,51 @@
+- job:
+    name: ceph-ansible-docs-pull-requests
+    node: small && (centos7 || trusty)
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-ansible: docs pull requests'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-ansible
+    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: 'jenkins test docs'
+          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-ansible
+          browser: auto
+          skip-tag: true
+          timeout: 20
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build