From 73379e2f5148f3cba663b0ccc168b673c4e44220 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 30 Nov 2018 11:22:39 +0100 Subject: [PATCH] ceph-ansible-pipeline: add purge_lvm_osds_container scenario Add scenario purge_lvm_osds_container for master branch. Only run scenario for corresponding purge playbook (container vs. non container). Signed-off-by: Guillaume Abrioux --- .../definitions/ceph-ansible-pipeline.yml | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index c52ff5b9..aea14a5a 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -132,7 +132,26 @@ if [[ "$ghprbTargetBranch" != "master" ]]; then exit 1 fi - git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge' + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge-docker-cluster.yml' + on-evaluation-failure: dont-run + steps: + - multijob: + name: 'ceph-ansible purge playbook testing' + condition: SUCCESSFUL + execution-type: PARALLEL + projects: + - name: 'ceph-ansible-prs-dev-purge_lvm_osds_container' + current-parameters: true + - conditional-step: + condition-kind: shell + condition-command: | + #!/bin/bash + set -x + # if the target branch is not master then we DON'T RUN these tests. + if [[ "$ghprbTargetBranch" != "master" ]]; then + exit 1 + fi + git diff --name-only $(git show HEAD | grep Merge | head -n 1 | cut -d ':' -f2) | grep 'infrastructure-playbooks/purge-cluster.yml' on-evaluation-failure: dont-run steps: - multijob: -- 2.39.5