From: Rishabh Dave Date: Fri, 21 Jun 2019 15:02:36 +0000 (+0530) Subject: ceph-ansible: add shrink_mgr scenario to CI X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c171f04078155b2689785fb670568fea794c8cb7;p=ceph-build.git ceph-ansible: add shrink_mgr scenario to CI Add shrink_mgr scenario to CI so that it can be tested against master and nautilus. Signed-off-by: Rishabh Dave --- diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index aff69e4f..bd58e9c2 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -613,6 +613,48 @@ current-parameters: true - name: 'ceph-ansible-prs-luminous-centos-container-shrink_osd' current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is not master then we DON'T RUN these tests. + if [[ "$ghprbTargetBranch" != "master" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mgr' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible shrink_mgr playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-dev-centos-non_container-shrink_mgr' + current-parameters: true + - name: 'ceph-ansible-prs-dev-centos-container-shrink_mgr' + current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is not stable-4.0 then we DON'T RUN these tests. + if [[ "$ghprbTargetBranch" != "stable-4.0" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mgr' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible shrink_mgr playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-nautilus-centos-non_container-shrink_mgr' + current-parameters: true + - name: 'ceph-ansible-prs-nautilus-centos-container-shrink_mgr' + 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 8f13864d..a2f25ed0 100644 --- a/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml +++ b/ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml @@ -17,6 +17,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mgr - shrink_mds - lvm_batch - add_osds @@ -96,6 +97,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mgr - shrink_mds - lvm_batch - add_osds @@ -176,6 +178,7 @@ - lvm_osds - shrink_mon - shrink_osd + - shrink_mgr - shrink_mds - lvm_batch - add_osds