]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: fix pipeline on add-osds/rgw-multisite scenarios 1204/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 12 Nov 2018 12:36:06 +0000 (13:36 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 12 Nov 2018 13:07:59 +0000 (14:07 +0100)
add-osds and rgw-multisite scenarios were not working as expected
in the CI regarding the destination branch.

This commits fixes the scenarios that should be run accoding to the
destination branch.

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

index 26da74ea65ab1a575f99264e7c47ad3e87081810..2880346ddf2480ffb8f44ca80aa2e5a23975a67c 100644 (file)
           condition-command: |
             #!/bin/bash
             set -x
-            # if the target branch is stable-3.2 we RUN these tests.
-            if [[ "$ghprbTargetBranch" == "master" ]]; then
+            # 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 'infrastructure-playbooks/add-osd|tests/functional/centos/7/add-osds'
-          on-evaluation-failure: run
+          on-evaluation-failure: dont-run
           steps:
             - multijob:
                 name: 'ceph-ansible add_osds playbook testing'
             #!/bin/bash
             set -x
             # if the target branch is stable-3.2 we RUN these tests.
-            if [[ "$ghprbTargetBranch" == "stable-3.2" ]]; then
+            if [[ "$ghprbTargetBranch" =~ stable-3.[0-1]|master ]]; then
               exit 1
             fi
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'infrastructure-playbooks/add-osd|tests/functional/centos/7/add-osds'
-          on-evaluation-failure: run
+          on-evaluation-failure: dont-run
           steps:
             - multijob:
                 name: 'ceph-ansible add_osds playbook testing'
             #!/bin/bash
             set -x
             # if the target branch is stable-3.2 then we RUN these tests.
-            if [[ "$ghprbTargetBranch" == "stable-3.2" ]]; then
+            if [[ "$ghprbTargetBranch" =~ stable-3.[0-1]|master ]]; 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|tests/functional/centos/7/rgw-multisite'
-          on-evaluation-failure: run
+          on-evaluation-failure: dont-run
           steps:
             - multijob:
                 name: 'ceph-ansible rgw multisite scenarios playbook testing'
             #!/bin/bash
             set -x
             # if the target branch is master then we RUN these tests.
-            if [[ "$ghprbTargetBranch" == "master" ]]; then
+            if [[ "$ghprbTargetBranch" =~ "stable-" ]]; 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|tests/functional/centos/7/rgw-multisite'
-          on-evaluation-failure: run
+          on-evaluation-failure: dont-run
           steps:
             - multijob:
                 name: 'ceph-ansible rgw multisite scenarios playbook testing'