From de5f67bb9b59a9e6ff981e6ce02c521f2c2c6dcb Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 29 Apr 2024 11:08:29 +0200 Subject: [PATCH] error_ci --- cd.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cd.sh b/cd.sh index 23c74a8..a85860c 100644 --- a/cd.sh +++ b/cd.sh @@ -63,14 +63,13 @@ cd_set_environment () { CD_PROJECTS_GROUP="$(dirname "${CI_PROJECT_PATH}")" # ci / none else - echo "CI" - exit 3 + cd_error_ci "ΓΈ" fi # - [ "${CD_SERVER_URL}" ] || echo "CD_SERVER_URL" && exit 3 - [ "${CD_PROJECT_BRANCH}" ] || echo "CD_PROJECT_BRANCH" && exit 3 - [ "${CD_PROJECT_NAME}" ] || echo "CD_PROJECT_NAME" && exit 3 - [ "${CD_PROJECTS_GROUP}" ] || echo "CD_PROJECTS_GROUP" && exit 3 + [ "${CD_SERVER_URL}" ] || cd_error_ci "CD_SERVER_URL" + [ "${CD_PROJECT_BRANCH}" ] || cd_error_ci "CD_PROJECT_BRANCH" + [ "${CD_PROJECT_NAME}" ] || cd_error_ci "CD_PROJECT_NAME" + [ "${CD_PROJECTS_GROUP}" ] || cd_error_ci "CD_PROJECTS_GROUP" # CD_PROJECTS_URL="${CD_SERVER_URL}/${CD_PROJECTS_GROUP}" CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"