]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pipeline: add missing shebang 1273/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 2 Apr 2019 13:28:36 +0000 (15:28 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 2 Apr 2019 13:28:36 +0000 (15:28 +0200)
using /bin/sh makes those condition failing since it doesn't understand
the double brackets.

Thanks @djgalloway

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-pipeline/config/definitions/ceph-ansible-pipeline.yml

index 503875ea26ea9f2d770d8d4936c27b6ca57725e6..fcc17c293da0be82f51bb742f0c8b3dd80f8f74f 100644 (file)
@@ -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
       - 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