I'm building a standard CMake project. During build, it complains about being unable to determine CMAKE_BUILD_TOOL (see
), and the agent keeps the CMakeCache.txt file open, causing subsequent builds that attempt to clean the build directory to fail as the file is still in use: JENKINS-29267
19:39:15 Cleaning build dir... C:\Jenkins\workspace\windows-triangle-msvc\build
19:39:16 ERROR: remote file operation failed: C:\Jenkins\workspace\windows-triangle-msvc\build at hudson.remoting.Channel@e17d372:JNLP4-connect connection from kicad-build-win7/192.168.122.10:49438: java.io.IOException: Unable to delete 'C:\Jenkins\workspace\windows-triangle-msvc\build\CMakeCache.txt'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
19:39:16 Build step 'CMake Build' marked build as failure