]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: add add_mgrs scenario to CI 1292/head
authorRishabh Dave <ridave@redhat.com>
Thu, 2 May 2019 13:24:22 +0000 (18:54 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 2 May 2019 14:38:11 +0000 (20:08 +0530)
Add add_mgrs 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 c64fb474e5b94b74164fba3312f34c6b353f2676..5cfd3dd33ef57b1356748fa9819cbc6910db383b 100644 (file)
                     current-parameters: true
                   - name: 'ceph-ansible-prs-nautilus-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 'tests/functional/add-mgrs'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible add_mgrs playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-centos-non_container-add_mgrs'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-dev-centos-container-add_mgrs'
+                    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-mgrs'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible add_mgrs playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-nautilus-centos-non_container-add_mgrs'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-nautilus-centos-container-add_mgrs'
+                    current-parameters: true
       - conditional-step:
           condition-kind: shell
           condition-command: |
index e631bbb1a5dadb0e011722cb53fe590d76bdb640..2713385f4369c590e32fc3b0c0ec4d4b489bac27 100644 (file)
@@ -21,6 +21,7 @@
       - lvm_batch
       - add_osds
       - add_mons
+      - add_mgrs
       - add_mdss
       - add_rgws
       - add_rbdmirrors
@@ -96,6 +97,7 @@
       - lvm_batch
       - add_osds
       - add_mons
+      - add_mgrs
       - add_mdss
       - add_rgws
       - add_rbdmirrors