Skip to content

Variable GIT_CLEAN_FLAGS for setting flags for git clean when fetching repository

Ivan Vashchaev requested to merge vivkin/gitlab-runner:clean-flags into master

What does this MR do?

Allow override hard coded '-ffdx' flags for 'git clean'

Why was this MR needed?

Some projects have a very large size of intermediate files required for building. For example, [Unity] (https://unity3d.com/) imports all assets at startup and saves them in the "Library" folder in the project root. It takes about 2 hours and as a result, the size of the folder "Library" > 10GB. Creating cache for this folder adds ~= 13 min of build time. This MR allows to override flags for "git clean" to prevent deleting these files.

Are there points in the code the reviewer needs to double check?

no

  • Documentation not needed in this repository
  • Tests
    • Not needed
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)
Edited by Ivan Vashchaev

Merge request reports