Commit 9644c23d authored by Jan Kiene's avatar Jan Kiene
Browse files

source script to get correct exit code

parent 5308ab91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -819,8 +819,8 @@ check-float-ref-companion-branch-exists-for-porting-merge-requests:
  tags:
    - ivas-basop-linux
  script:
  - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/check-float-ref-companion-branch-exists-for-porting-merge-requests.sh

  # we need to source the script here so that the correct exit code is returned from the global job shell and the "allow_failure" recognizes it
  - source "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/basop/check-float-ref-companion-branch-exists-for-porting-merge-requests.sh
  allow_failure:
    exit_codes:
      - 123
+0 −2
Original line number Diff line number Diff line
@@ -48,8 +48,6 @@ float_ref_branchname=$(${CI_PROJECT_DIR}/ivas-codec-ci/snippets/basop/get-float-
if [ "$float_ref_branchname" == "ivas-float-update" ]; then
  expected_float_ref_branch="${CI_COMMIT_REF_NAME/basop/ref}"
  printf "$MSG_NO_FLOAT_REF_BRANCH_FOUND" "$CI_COMMIT_REF_NAME" "$expected_float_ref_branch"

  echo "Now exiting"
  exit 123
fi