From 4ad8eaf2bc76f0227007f86ee24dfdef6152b304 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 26 Sep 2017 09:38:09 -0500 Subject: [PATCH] ceph-ansible-prs: allow for tests to be auto started or only triggered This creates two different projects, one which lists scenarios that will auto start on every PR and another which lists scenarios that will only start if a comment is made on the PR with its trigger phrase. Signed-off-by: Andrew Schoen --- .../config/definitions/ceph-ansible-prs.yml | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml index 80d64e64..f13e1aff 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -1,5 +1,6 @@ +# tests that will auto start for every PR created - project: - name: ceph-ansible-prs + name: ceph-ansible-prs-auto release: - luminous ansible_version: @@ -7,6 +8,20 @@ scenario: - centos7_cluster - xenial_cluster + only_trigger_phrase: + - false + jobs: + - 'ceph-ansible-prs-{release}-{ansible_version}-{scenario}' + +# tests that will not auto start when a PR is created, but +# they can be requested with a trigger phrase +- project: + name: ceph-ansible-prs-trigger + release: + - luminous + ansible_version: + - ansible2.3 + scenario: - journal_collocation - journal_collocation_auto - journal_collocation_auto_dmcrypt @@ -32,9 +47,14 @@ - shrink_mon_container - shrink_osd - shrink_osd_container + only_trigger_phrase: + - true jobs: - 'ceph-ansible-prs-{release}-{ansible_version}-{scenario}' +# tests that use packages from shaman.ceph.com and +# do not auto start when a PR is created, but can be +# requested with a trigger phrase - project: name: ceph-ansible-prs-dev release: @@ -44,6 +64,8 @@ scenario: - lvm_osds - purge_lvm_osds + only_trigger_phrase: + - true jobs: - 'ceph-ansible-prs-{release}-{ansible_version}-{scenario}' @@ -79,7 +101,7 @@ - ceph skip-build-phrase: '^jenkins do not test.*' trigger-phrase: 'jenkins test {release}-{ansible_version}-{scenario}' - only-trigger-phrase: false + only-trigger-phrase: {only_trigger_phrase} github-hooks: true permit-all: true auto-close-on-fail: false -- 2.39.5