From: Guillaume Abrioux Date: Tue, 2 Apr 2019 13:28:36 +0000 (+0200) Subject: ceph-ansible-pipeline: add missing shebang X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a8743c07a04c95c66ee24c5691130567b7f1512c;p=ceph-build.git ceph-ansible-pipeline: add missing shebang using /bin/sh makes those condition failing since it doesn't understand the double brackets. Thanks @djgalloway Signed-off-by: Guillaume Abrioux --- diff --git a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml index 503875ea..fcc17c29 100644 --- a/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml +++ b/ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml @@ -55,6 +55,8 @@ - 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 @@ -125,6 +127,8 @@ - conditional-step: condition-kind: shell condition-command: | + #!/bin/bash + set -x # if the target branch is not stable-4.0 then we DON'T RUN these tests. if [[ "$ghprbTargetBranch" =~ stable-3.[0-2]|master ]]; then exit 1