]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: add add_rbdmirrors scenario to CI 1282/head
authorRishabh Dave <ridave@redhat.com>
Mon, 8 Apr 2019 08:44:28 +0000 (14:14 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 25 Apr 2019 09:58:58 +0000 (15:28 +0530)
Add add_rbdmirrors scenario to CI so that it can be tested against
master.

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 289e1855b9f8579f929cf3d525764d682c2ff7f4..c64fb474e5b94b74164fba3312f34c6b353f2676 100644 (file)
                     current-parameters: true
                   - name: 'ceph-ansible-prs-nautilus-centos-container-add_rgws'
                     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 'tests/functional/add-rbdmirrors'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible add_rbdmirrors playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-centos-non_container-add_rbdmirrors'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-dev-centos-container-add_rbdmirrors'
+                    current-parameters: true
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the target branch is stable-4.0 we RUN these tests.
+            if [[ "$ghprbTargetBranch" =~ stable-3.[0-2]|master ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'tests/functional/add-rbdmirrors'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible add_rbdmirrors playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-nautilus-centos-non_container-add_rbdmirrors'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-nautilus-centos-container-add_rbdmirrors'
       - conditional-step:
           condition-kind: shell
           condition-command: |
index 8d2ab16be6ddab222153c69dd8d8cf50c17ebf62..e631bbb1a5dadb0e011722cb53fe590d76bdb640 100644 (file)
@@ -23,6 +23,7 @@
       - add_mons
       - add_mdss
       - add_rgws
+      - add_rbdmirrors
       - rgw_multisite
       - purge
       - lvm_auto_discovery
@@ -97,6 +98,7 @@
       - add_mons
       - add_mdss
       - add_rgws
+      - add_rbdmirrors
       - rgw_multisite
       - purge
       - lvm_auto_discovery