parent
e644fd571c
commit
a352f34c3e
1 changed files with 9 additions and 9 deletions
18
cd.sh
18
cd.sh
|
@ -57,18 +57,18 @@ else
|
||||||
echo 'CD_PROJECTS_GROUP'
|
echo 'CD_PROJECTS_GROUP'
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
#
|
# projects / url
|
||||||
[ "${CI_SERVER_URL}" ] && CD_REPOSITORIES_URL="${CI_SERVER_URL}"
|
[ "${CI_SERVER_URL}" ] && CD_PROJECTS_URL="${CI_SERVER_URL}"
|
||||||
[ "${GITHUB_SERVER_URL}" ] && CD_REPOSITORIES_URL="${GITHUB_SERVER_URL}"
|
[ "${GITHUB_SERVER_URL}" ] && CD_PROJECTS_URL="${GITHUB_SERVER_URL}"
|
||||||
if [ "${CD_REPOSITORIES_URL}" ] ; then
|
if [ "${CD_PROJECTS_URL}" ] ; then
|
||||||
CD_REPOSITORIES_URL+="/${CD_PROJECTS_GROUP}"
|
CD_PROJECTS_URL+="/${CD_PROJECTS_GROUP}"
|
||||||
echo "CD_REPOSITORIES_URL = ${CD_REPOSITORIES_URL}"
|
echo "CD_PROJECTS_URL = ${CD_PROJECTS_URL}"
|
||||||
else
|
else
|
||||||
echo 'CD_REPOSITORIES_URL'
|
echo 'CD_PROJECTS_URL'
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
# project / url
|
# project / url
|
||||||
CD_PROJECT_URL="${CD_REPOSITORIES_URL}/${CD_PROJECT_NAME}"
|
CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"
|
||||||
|
|
||||||
function cd_step {
|
function cd_step {
|
||||||
if [ "${1}" ] ; then
|
if [ "${1}" ] ; then
|
||||||
|
@ -227,7 +227,7 @@ local root
|
||||||
"${CD_NAME}" \
|
"${CD_NAME}" \
|
||||||
; do
|
; do
|
||||||
git clone \
|
git clone \
|
||||||
"${CD_REPOSITORIES_URL}/${repository}" "${root}/${repository}" \
|
"${CD_PROJECTS_URL}/${repository}" "${root}/${repository}" \
|
||||||
|| exit
|
|| exit
|
||||||
cp --recursive \
|
cp --recursive \
|
||||||
"${root}/${repository}/${repository}" "${CD_PYTHON_PACKAGES}" \
|
"${root}/${repository}/${repository}" "${CD_PYTHON_PACKAGES}" \
|
||||||
|
|
Loading…
Reference in a new issue