From 1830764e1ae95f57d0ea44c743a596a7a6ca0cb6 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 19 Jul 2017 09:58:03 -0400 Subject: [PATCH] ceph-pr-docs: create a trigger-only job for testing docs Signed-off-by: Alfredo Deza --- ceph-pr-docs/build/build | 8 +++ .../config/definitions/ceph-pr-docs.yml | 54 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 ceph-pr-docs/build/build create mode 100644 ceph-pr-docs/config/definitions/ceph-pr-docs.yml diff --git a/ceph-pr-docs/build/build b/ceph-pr-docs/build/build new file mode 100644 index 00000000..79e8f5ea --- /dev/null +++ b/ceph-pr-docs/build/build @@ -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 index 00000000..39b633ae --- /dev/null +++ b/ceph-pr-docs/config/definitions/ceph-pr-docs.yml @@ -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 -- 2.47.3