Skip to content

Remove the cloned repository if it already exists

Achilleas Pipinellis requested to merge axil-rm-repo-if-exists into main

The gitlab-org internal shared runners re-use the VM environment to speed up our pipelines. At the start of new jobs, the runner tries to clean up the environment, but we're cloning repos outside the default working tree, and the runner is unable to clean up those cloned repos.

This change updates the rake task to handle the cases where we land on a runner that already ran a docs build, to make sure we're not reusing an old version of the docs, or a review app's content.

For more context, see #1291 (closed)

Closes #1291 (closed).

Merge request reports