]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pipeline: fix wrong condition 1161/head
authorSébastien Han <seb@redhat.com>
Fri, 12 Oct 2018 18:26:35 +0000 (20:26 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 12 Oct 2018 18:27:16 +0000 (20:27 +0200)
if grep report 0 ceph-osd was modified thus we exit

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

index c3e7a4c26895231b181d6d07424909cbf3457c19..3f416eb54b30d7b781dd4914c0760d4eb02ee7ad 100644 (file)
             fi
             # do not run if roles/ceph-osd has been touched since the task above play osds already
             git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep -E 'roles/ceph-osd'
-            if [ $? -eq 1 ]; then
+            if [ $? -eq 0 ]; then
               echo "ceph-osd role modified, nothing to test, the ceph-osd role test is handled by another pipeline job."
               exit 1
             fi
-            exit 0
           on-evaluation-failure: dont-run
           steps:
             - multijob: