]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-docs: create a trigger-only job for testing docs 789/head
authorAlfredo Deza <adeza@redhat.com>
Wed, 19 Jul 2017 13:58:03 +0000 (09:58 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 19 Jul 2017 13:58:03 +0000 (09:58 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-docs/build/build [new file with mode: 0644]
ceph-pr-docs/config/definitions/ceph-pr-docs.yml [new file with mode: 0644]

diff --git a/ceph-pr-docs/build/build b/ceph-pr-docs/build/build
new file mode 100644 (file)
index 0000000..79e8f5e
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+set -ex
+
+./admin/build-doc
+
+ls -l build-doc/output/html/
+
diff --git a/ceph-pr-docs/config/definitions/ceph-pr-docs.yml b/ceph-pr-docs/config/definitions/ceph-pr-docs.yml
new file mode 100644 (file)
index 0000000..39b633a
--- /dev/null
@@ -0,0 +1,54 @@
+- job:
+    name: ceph-pr-docs
+    display-name: 'ceph: Pull Requests Docs Check'
+    node: (centos7 || trusty) && x86_64
+    project-type: freestyle
+    defaults: global
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph
+    discard-old-builds: true
+    logrotate:
+      daysToKeep: 14
+
+    triggers:
+      - github-pull-request:
+          allow-whitelist-orgs-as-admins: true
+          org-list:
+            - ceph
+          # this job is only triggered by explicitly asking for it
+          only-trigger-phrase: true
+          trigger-phrase: 'jenkins test docs'
+          github-hooks: true
+          permit-all: true
+          auto-close-on-fail: false
+          status-context: "Testing: building docs"
+          started-status: "Building documentation"
+          success-status: "OK - docs built"
+          failure-status: "Docs failed with errors"
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph
+          browser: auto
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
+    publishers:
+      - html-publisher:
+          name: "Ceph Pull Request Docs"
+          dir: "admin/build-doc/output/html/"
+          # XXX is this sufficient? the docs indicate this is only for the
+          # main index files
+          files: "index.html"
+          keep-all: true
+          allow-missing: true
+          link-to-last-build: true
+
+    builders:
+      - shell:
+          !include-raw ../../build/build