]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pipeline: add rgw multisite
authorSébastien Han <seb@redhat.com>
Mon, 29 Oct 2018 16:47:57 +0000 (17:47 +0100)
committerSébastien Han <seb@redhat.com>
Mon, 29 Oct 2018 16:47:57 +0000 (17:47 +0100)
support for testing rgw multisite in the pipeline

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml

index 2cff09114a2ab5fb1fe8b2a6966d02bad5d65b1d..6bc0b1553b5325f1481588ec315b7f5bd5431d90 100644 (file)
                   - name: 'ceph-ansible-prs-dev-lvm_batch_container'
                     current-parameters: true
 
+      - conditional-step:
+          condition-kind: shell
+          condition-command: |
+            #!/bin/bash
+            set -x
+            # if the current branch is stable-3.0 or stable-3.1 then we don't run these tests
+            if [[ "$ghprbTargetBranch" == "stable-3.1" ]] || [[ "$ghprbTargetBranch" == "stable-3.0" ]]; then
+              exit 1
+            fi
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'roles/ceph-rgw/tasks/multisite'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible rgw multisite scenarios playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-rgw_multisite'
+                    current-parameters: true
+                  - name: 'ceph-ansible-prs-dev-rgw_multisite_container'
+                    current-parameters: true
+
       - conditional-step:
           condition-kind: shell
           condition-command: |