Avoiding Gitlab Runner Directory Resets
✍ Last Updated : November 25, 2022
🚪 Prequisite Knowledge (Optional)
Describe Initial Knowledge that reader need to know before reading this article
- [Git](Git d1cd794e98b94d069cc40c9e946f606d.md)
- CI CD
❓ Key Question / Problem / Issue
Describe what question / Problem / Issue this knowledge should answer
- Runner keep cleaning it’s git directory which contain build generated file that can speed up job execution
https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/772
✅ Expected Output/Definition of Done
Define what information you really need and the definition of done
- a way to stop git from resetting it repository folders
🎁 Resulting Solution
Write writing results below
this can be done by adding this variable in gitlab-ci.yml
variables: GIT_CLEAN_FLAGS: -x -f -e **
https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/1281
No Comments