]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pipeline: Fix stable-3.0 phase conditional steps 1060/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 29 Jun 2018 14:54:28 +0000 (10:54 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 29 Jun 2018 15:25:30 +0000 (11:25 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml

index 412dde24f67fc9d2c3336a1668d01ab4ef4416dd..98b372a2a74ee2b5fc28976093c61d5b62aaf348 100644 (file)
@@ -56,6 +56,7 @@
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge'
           on-evaluation-failure: dont-run
           steps:
@@ -64,7 +65,8 @@
                 condition-kind: shell
                 condition-command: |
                   #!/bin/bash
-                  git show-branch ${sha1} | grep -q $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
+                  set -x
+                  git show-branch ${sha1} | grep $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
                 on-evaluation-failure: dont-run
                 steps:
                   - multijob:
@@ -87,8 +89,9 @@
                 condition-kind: shell
                 condition-command: |
                   #!/bin/bash
-                  git show-branch ${sha1} | grep -vq $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
-                on-evaluation-failure: dont-run
+                  set -x
+                  git show-branch ${sha1} | grep -v $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
+                on-evaluation-failure: run
                 steps:
                   - multijob:
                       name: 'ceph-ansible purge playbook testing'
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/rolling_update'
           on-evaluation-failure: dont-run
           steps:
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-mon'
           on-evaluation-failure: dont-run
           steps:
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/shrink-osd'
           on-evaluation-failure: dont-run
           steps:
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons'
           on-evaluation-failure: dont-run
           steps:
           condition-kind: shell
           condition-command: |
             #!/bin/bash
+            set -x
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -v 'infrastructure-playbooks'
             if [ $? -eq 1 ]; then
               echo "Infra playbooks modified.  Not testing remaining scenarios."
                 condition-kind: shell
                 condition-command: |
                   #!/bin/bash
-                  git show-branch ${sha1} | grep -q $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
+                  set -x
+                  git show-branch ${sha1} | grep $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
                 on-evaluation-failure: dont-run
                 steps:
                   - multijob:
                 condition-kind: shell
                 condition-command: |
                   #!/bin/bash
-                  git show-branch ${sha1} | grep -vq $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
-                on-evaluation-failure: dont-run
+                  set -x
+                  git show-branch ${sha1} | grep -v $(git ls-remote https://github.com/ceph/ceph-ansible.git stable-3.0 | awk '{ print $1 }')
+                on-evaluation-failure: run
                 steps:
                   - multijob:
                       name: 'ceph-ansible advanced cluster testing phase'