Refactor the creation of the job temporary file path
This issue is extracted from gitlab#29407 (closed)
|1. GitLab: Stop expanding file variables when sending to Runner
|2. Runner: Refactor the creation of the job temporary file path
|3. Fix file variables in Runner
Extract creation of the job temporary file path from the
The path depends on the job data. Until it needs to be printed, there is nothing shell-dependent that needs to be considered.
I think that we should have the code that creates that path moved to the
common.Build structure, and the
ShellWriter implementations should focus on how to present the path and how to prepare the environment during the script execution for file creation there (like calling a shell/os dependent command to create a directory where temporary files are stored).