]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pipeline: add purge_lvm_osds_container scenario 1210/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 30 Nov 2018 10:22:39 +0000 (11:22 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 30 Nov 2018 10:22:39 +0000 (11:22 +0100)
Add scenario purge_lvm_osds_container for master branch.

Only run scenario for corresponding purge playbook (container vs. non
container).

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml

index c52ff5b92ed1a63e65412f319d4f5ed30cc1f20d..aea14a5ad08e1c0fecd2ef712423e9fdac489eec 100644 (file)
             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/purge'
+            git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge-docker-cluster.yml'
+          on-evaluation-failure: dont-run
+          steps:
+            - multijob:
+                name: 'ceph-ansible purge playbook testing'
+                condition: SUCCESSFUL
+                execution-type: PARALLEL
+                projects:
+                  - name: 'ceph-ansible-prs-dev-purge_lvm_osds_container'
+                    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/purge-cluster.yml'
           on-evaluation-failure: dont-run
           steps:
             - multijob: