Skip to content
Snippets Groups Projects
Commit b90d272c authored by Radovan Krebs's avatar Radovan Krebs
Browse files

Configure usage of git credential file

parent b62c3424
Branches
Tags
No related merge requests found
...@@ -47,6 +47,8 @@ if [ $? != 0 ]; then ...@@ -47,6 +47,8 @@ if [ $? != 0 ]; then
fi fi
PREPARE_ANSWERS_PY=$(realpath "manage_answers.py") PREPARE_ANSWERS_PY=$(realpath "manage_answers.py")
git config --global credential.helper 'store --file=/app/.git-credentials'
# Check if git repo is reachable. # Check if git repo is reachable.
git ls-remote $REPO_URL -q git ls-remote $REPO_URL -q
if [ $? != 0 ]; then if [ $? != 0 ]; then
...@@ -54,7 +56,7 @@ if [ $? != 0 ]; then ...@@ -54,7 +56,7 @@ if [ $? != 0 ]; then
exit 1 exit 1
fi fi
git clone $REPO_URL ansible_repo || exit 1 git clone $REPO_URL ansible_repo > /dev/null 2>&1 || exit 1
cd ansible_repo || exit 1 cd ansible_repo || exit 1
if [ $REVISION ]; then if [ $REVISION ]; then
git checkout $REVISION || exit 1 git checkout $REVISION || exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment