From de55e25aa216d8bbe63a489793f83e81adc8bc39 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Tue, 12 Feb 2019 11:21:06 +0530 Subject: [PATCH] add add_mdss scenarion to CI Add add_mdss scenario to CI so that it can be tested against master. Signed-off-by: Rishabh Dave --- .../definitions/ceph-ansible-pipeline.yml | 21 +++++++++++++++++++ .../config/definitions/ceph-ansible-prs.yml | 1 + 2 files changed, 22 insertions(+) diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index 979954ee..21c50b88 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -115,6 +115,27 @@ current-parameters: true - name: 'ceph-ansible-prs-dev-centos-container-add_mons' current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is master we RUN these tests. + if [[ "$ghprbTargetBranch" =~ "stable-" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'infrastructure-playbooks/add-mon|tests/functional/add-mdss' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible add_mdss playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-dev-centos-non_container-add_mdss' + current-parameters: true + - name: 'ceph-ansible-prs-dev-centos-container-add_mdss' + current-parameters: true - conditional-step: condition-kind: shell condition-command: | diff --git a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml index ed0a7885..6fd3864d 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -23,6 +23,7 @@ - lvm_batch - add_osds - add_mons + - add_mdss - rgw_multisite - purge - lvm_auto_discovery -- 2.39.5