error_ci
This commit is contained in:
parent
c114dfae77
commit
de5f67bb9b
1 changed files with 5 additions and 6 deletions
11
cd.sh
11
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}"
|
||||
|
|
Loading…
Reference in a new issue