From 9f698598fb54a310b569bee70dd8cc98210555e6 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 13 Apr 2017 12:56:42 -0400 Subject: [PATCH] ceph-ansible-docs-prs: create a job for building docs on prs Signed-off-by: Alfredo Deza --- ceph-ansible-docs-prs/build/build | 8 +++ .../definitions/ceph-ansible-docs-prs.yml | 51 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 ceph-ansible-docs-prs/build/build create mode 100644 ceph-ansible-docs-prs/config/definitions/ceph-ansible-docs-prs.yml diff --git a/ceph-ansible-docs-prs/build/build b/ceph-ansible-docs-prs/build/build new file mode 100644 index 00000000..50c9f920 --- /dev/null +++ b/ceph-ansible-docs-prs/build/build @@ -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 index 00000000..e3ef8408 --- /dev/null +++ b/ceph-ansible-docs-prs/config/definitions/ceph-ansible-docs-prs.yml @@ -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 -- 2.39.5