Use pipeline credentials for clonning

This commit is contained in:
Vivek Kumar Dutta 2024-02-20 18:07:53 +05:30
parent 05de173f9f
commit 9aff998ac5
2 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,7 @@ run_tools_test:
image: ${COMMON_IMAGE}
allow_failure: false
script:
- "./gitlab-ci/setup.sh"
- "./gitlab-ci/tools-test.sh"
- "./gitlab-ci/generate_supported_dm.sh"

View file

@ -2,6 +2,10 @@
echo "# Preparation script ..."
echo "Setting Git config"
echo "https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}" > ~/.git-credential
git config --global credential.helper "store --file ~/.git-credential"
# link '/bin/sh' to bash instead of dash
ln -sf bash /bin/sh