Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    gitbuildmaster
    3 Posts 1 Posters 14 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation