]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pr-syntax-check: force return 0 1070/head
authorSébastien Han <seb@redhat.com>
Tue, 3 Jul 2018 12:49:15 +0000 (14:49 +0200)
committerSébastien Han <seb@redhat.com>
Tue, 3 Jul 2018 12:49:39 +0000 (14:49 +0200)
If the test succeeds we return 0.

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-ansible-pr-syntax-check/build/build

index 3be3ec970ada2bda3dfea0889be98371ea68a248..5b19523bcea788d636bbfd5bc54e5718fdf9bc2b 100644 (file)
@@ -52,6 +52,9 @@ function test_sign_off {
   # shellcheck disable=SC2154
   # ghprbTargetBranch variable comes from jenkins's injectedEnvVars
   test "$(git log --oneline --no-merges origin/"${ghprbTargetBranch}"..HEAD | wc -l)" -ne "$(git log --no-merges origin/"${ghprbTargetBranch}"..HEAD | grep -c Signed-off-by)" && echo "One or more commits is/are missing a Signed-off-by. Add it with 'git commit -s'." && return 1
+
+  # if we arrive here the test command successed and we can return 0
+  echo "Sign-off ok!" && return 0
 }