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>
- 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