From 4f00251a375762dbbec7afa8f2077677c3d332c0 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 27 Jul 2017 14:24:07 -0400 Subject: [PATCH] ceph-volume-pr: create a job for manual triggering of ceph-volume tox runs Signed-off-by: Alfredo Deza --- ceph-volume-pr/build/build | 8 ++++ .../config/definitions/ceph-volume-pr.yml | 44 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 ceph-volume-pr/build/build create mode 100644 ceph-volume-pr/config/definitions/ceph-volume-pr.yml diff --git a/ceph-volume-pr/build/build b/ceph-volume-pr/build/build new file mode 100644 index 00000000..d3478906 --- /dev/null +++ b/ceph-volume-pr/build/build @@ -0,0 +1,8 @@ +#!/bin/bash +set -ex + +# the following two methods exist in scripts/build_utils.sh +pkgs=( "tox" ) +install_python_packages "pkgs[@]" + +cd src/ceph-volume && $VENV/tox -rv diff --git a/ceph-volume-pr/config/definitions/ceph-volume-pr.yml b/ceph-volume-pr/config/definitions/ceph-volume-pr.yml new file mode 100644 index 00000000..335bc6b5 --- /dev/null +++ b/ceph-volume-pr/config/definitions/ceph-volume-pr.yml @@ -0,0 +1,44 @@ +- job: + name: ceph-volume-pr + display-name: 'ceph-volume: Pull Request tox tests' + node: 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 + trigger-phrase: 'jenkins test ceph-volume tox' + white-list-labels: 'ceph-volume' + github-hooks: true + permit-all: true + auto-close-on-fail: false + status-context: "ceph-volume tox testing" + started-status: "ceph-volume tox running" + success-status: "ceph-volume tox OK" + failure-status: "ceph-volume tox failed" + + scm: + - git: + url: https://github.com/ceph/ceph + browser: auto + skip-tag: true + timeout: 20 + wipe-workspace: true + + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/build -- 2.39.5