Skip to content

fix caching in Linux containers on Windows hosts by avoiding insertion of '\'...

What does this MR do?

It fixes caching when using Linux containers on Windows hosts.

Why was this MR needed?

When using a Windows host, '' (host) separated paths were inserted into the Linux container for the cache location. Linux interpreted the '' wrongly as part of the file name and stored the cache.zip in the wrong location. This resulted in the failure of the caching feature.

Forum discussion: https://forum.gitlab.com/t/windows-docker-executor-deletes-cache-zip-before-cache-is-restored/29259/5

What's the best way to test this MR?

Use a Linux docker executor on a Windows host and monitor cache creation and reuse on job retry, i.e. perform incremental rebuilds.

What are the relevant issue numbers?

#4091

Edited by Maik Schulze

Merge request reports