]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-ci: do not run osd twice 1159/head
authorSébastien Han <seb@redhat.com>
Fri, 12 Oct 2018 17:42:36 +0000 (19:42 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 12 Oct 2018 17:42:36 +0000 (19:42 +0200)
Do not play twice osds if they have been ack by the first task of the
pipeline.

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

index 3979c4c5fe3a8849326bd87b6034de46f6dd2bce..5f4aa3ee769d9eaeac60df93b615cfd33c3d61b5 100644 (file)
               echo "Infra playbooks modified.  Not testing remaining scenarios."
               exit 1
             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' && exit 1
           on-evaluation-failure: dont-run
           steps:
             - multijob: