Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Get Git Source operation - won't remove deleted files
-
Hi,
I have some files deleted in a branch of a git repository. When creating artifact off of that branch, even though the step has option "Clean workspace" is set to true, the deleted file still appears in the new artifact (and is kept in the download temp folder - the "Export to directory" option - on BM box).
We have to manually go and delete those files in the target directories after BM deploy.
What is the correct way to set up "Get Git Source", so that it has everytime empty folder to download to?
Product: BuildMaster
Version: 5.6.5
-
If the "Clean workspace" option is selected, then only the local Git repository will be deleted. Based on the code , you'll see a debug line logged like
Clearing workspace path 'xxxxx'...
This option is generally desirable since it always ensures a clean workspace (Git repos can easily get in a poor state), but if you have a very large repository it will save checkout time.
If you want to clear the files in the target folder, then you'll need to do a
Delete Files
operation first.
-
Hello Alana,
Thank you for reply. Adding "Delete Files" step before "Get Git Source" worked for me. Deleted files don't appear in newly created artifacts anymore.
cheers,
Milan