]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: add shrink_rbdmirror to CI 1325/head
authorRishabh Dave <ridave@redhat.com>
Wed, 26 Jun 2019 03:46:19 +0000 (09:16 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 26 Jun 2019 03:46:19 +0000 (09:16 +0530)
Add shrink_rbdmirror scenario to CI so that it can be tested against
master and nautilus.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml
ceph-ansible-prs/config/definitions/ceph-ansible-prs.yml

index bd58e9c24e40f361eee77f231cd0a31786e89752..ba29197db7e38a0fc8e3a34db5203f63c943ce76 100644 (file)
                     current-parameters: true
                   - name: 'ceph-ansible-prs-nautilus-centos-container-shrink_mds'
                     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-rbdmirror'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible shrink_rbdmirror playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-centos-non_container-shrink_rbdmirror'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-dev-centos-container-shrink_rbdmirror'
+                    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-rbdmirror'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible shrink_rbdmirror playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-nautilus-centos-non_container-shrink_rbdmirror'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-nautilus-centos-container-shrink_rbdmirror'
+                    current-parameters: true
       - conditional-step:
           condition-kind: shell
           condition-command: |
index a2f25ed04946c345979090d49e00e5c884a7797d..2622c19eeabbbb82981b40c0f8d2042e5d93b892 100644 (file)
@@ -19,6 +19,7 @@
       - shrink_osd
       - shrink_mgr
       - shrink_mds
+      - shrink_rbdmirror
       - lvm_batch
       - add_osds
       - add_mons
       - shrink_osd
       - shrink_mgr
       - shrink_mds
+      - shrink_rbdmirror
       - lvm_batch
       - add_osds
       - add_mons
       - shrink_osd
       - shrink_mgr
       - shrink_mds
+      - shrink_rbdmirror
       - lvm_batch
       - add_osds
       - rgw_multisite