From 040195e6ab6dc5cc00ce34d1959deca7bfaae411 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Fri, 12 Oct 2018 19:42:36 +0200 Subject: [PATCH] ceph-ansible-ci: do not run osd twice MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Do not play twice osds if they have been ack by the first task of the pipeline. Signed-off-by: Sébastien Han --- .../config/definitions/ceph-ansible-pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index 3979c4c5..5f4aa3ee 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -237,6 +237,8 @@ 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: -- 2.39.5