From 64ba82f17367a5959cd585ee7e0e87504ed92d80 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Fri, 6 Jan 2017 11:05:52 -0600 Subject: [PATCH] ceph-installer-tests: a project to run ceph-installer functional tests This will create a new jenkins job for each testing scenario defined in the config file. These jobs will run daily and can be trigger manually, optionally providing which branches of ceph-installer and ceph-ansible to test with. Signed-off-by: Andrew Schoen --- .../build/build | 2 +- .../definitions/ceph-installer-tests.yml | 19 +++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) rename {ceph-installer-nightly => ceph-installer-tests}/build/build (71%) rename ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml => ceph-installer-tests/config/definitions/ceph-installer-tests.yml (72%) diff --git a/ceph-installer-nightly/build/build b/ceph-installer-tests/build/build similarity index 71% rename from ceph-installer-nightly/build/build rename to ceph-installer-tests/build/build index f572889b..413c71a9 100644 --- a/ceph-installer-nightly/build/build +++ b/ceph-installer-tests/build/build @@ -6,4 +6,4 @@ WORKDIR=$(mktemp -td tox.XXXXXXXXXX) cd $WORKSPACE/tests/functional -INSTALLER_DEV_BRANCH=$INSTALLER_BRANCH CEPH_ANSIBLE_DEV_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=ansible2.2-nightly --workdir=$WORKDIR -- --provider=libvirt +INSTALLER_DEV_BRANCH=$INSTALLER_BRANCH CEPH_ANSIBLE_DEV_BRANCH=$CEPH_ANSIBLE_BRANCH $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt diff --git a/ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml b/ceph-installer-tests/config/definitions/ceph-installer-tests.yml similarity index 72% rename from ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml rename to ceph-installer-tests/config/definitions/ceph-installer-tests.yml index 92769832..ddf2fc46 100644 --- a/ceph-installer-nightly/config/definitions/ceph-installer-nightly.yml +++ b/ceph-installer-tests/config/definitions/ceph-installer-tests.yml @@ -1,9 +1,17 @@ -- job: - name: ceph-installer-nightly +- project: + name: ceph-installer-tests + scenario: + - ansible2.2-nightly_centos7 + - ansible2.2-nightly_xenial + jobs: + - 'ceph-installer-tests-{scenario}' + +- job-template: + name: 'ceph-installer-tests-{scenario}' node: vagrant && libvirt project-type: freestyle defaults: global - display-name: 'ceph-installer: Nightly tests for ceph-installer and ceph-ansible integration' + display-name: 'ceph-installer: Tests [{scenario}]' quiet-period: 5 block-downstream: false block-upstream: false @@ -40,8 +48,11 @@ timeout: 20 builders: + - inject: + properties-content: | + SCENARIO={scenario} - shell: - !include-raw: + !include-raw-escape: - ../../../scripts/build_utils.sh - ../../build/build -- 2.47.3