parent
6e939f50f1
commit
db411d73a5
1 changed files with 11 additions and 0 deletions
11
cd.sh
11
cd.sh
|
@ -39,6 +39,17 @@ else
|
||||||
echo 'CD_PROJECT_NAME'
|
echo 'CD_PROJECT_NAME'
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
# projects / group
|
||||||
|
[ "${CI_PROJECT_PATH}" ] \
|
||||||
|
&& CD_PROJECTS_GROUP="$(dirname "${CI_PROJECT_PATH}")"
|
||||||
|
[ "${GITHUB_REPOSITORY}" ] \
|
||||||
|
&& CD_PROJECTS_GROUP="$(dirname "${GITHUB_REPOSITORY}")"
|
||||||
|
if [ "${CD_PROJECTS_GROUP}" ] ; then
|
||||||
|
echo "CD_PROJECTS_GROUP = ${CD_PROJECTS_GROUP}"
|
||||||
|
else
|
||||||
|
echo 'CD_PROJECTS_GROUP'
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
#
|
#
|
||||||
[ "${CI_SERVER_URL}" ] && CD_REPOSITORIES_URL="${CI_SERVER_URL}"
|
[ "${CI_SERVER_URL}" ] && CD_REPOSITORIES_URL="${CI_SERVER_URL}"
|
||||||
[ "${GITHUB_SERVER_URL}" ] && CD_REPOSITORIES_URL="${GITHUB_SERVER_URL}"
|
[ "${GITHUB_SERVER_URL}" ] && CD_REPOSITORIES_URL="${GITHUB_SERVER_URL}"
|
||||||
|
|
Loading…
Reference in a new issue