This commit is contained in:
Marc Beninca 2024-04-29 11:08:29 +02:00
parent c114dfae77
commit de5f67bb9b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
cd.sh
View file

@ -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}"