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!

    Linux file copy not working as expected.

    Scheduled Pinned Locked Moved Support
    buildmasterlinux
    7 Posts 1 Posters 5 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

      Hello,

      I'm getting ready to migrate to version 5 of BuildMaster, so I've built a new server and I'm testing my deployment plans first.
      However, I'm stuck at the very first step.

      The script grabs files from an Subversion source and then transfers them to a Linux host. It looks like the files are being copied, but when they end up on the server, the file name is made up of the full path including a forward slash /

      This works fine on my 4.9.7 server. It seems the 5.0 server somehow is copying the files in a Windows format that the Linux server is replicating, but not in a correct file structure.

      For example:
      this is the folder structure
      server (directory)
      build (directory)
      iso builder (directory)
      lib (directory)
      functions.ps1 (file)

      ends up as a file called: server\build\iso builder\lib\functions.ps1
      The directory structure is not created.

      Any help appreciated.

      Thanks,

      David

      Product: BuildMaster
      Version: 5.0.5

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

        Hi David, is this using a v5/OtterSCript plan, or a legacy plan?

        Can you share the plan so we can look and reproduce? If v5/OtterScript, it should be just as easy as sharing the text!

        Thanks!

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

          Hello,

          Yes, V5 OtterScript. There's not much to it.

          I've changed some names to keep them secret :-)

          ##AH:UseTextMode
          # Deploy Router1
          for server BUILDMASTER3
          {
              Get-Latest-Source
              (
                  Provider: Subversion,
                  SourcePath: /CME/
              );
              
              Transfer-Files
              (
                  Include: **,
                  ToDirectory: /root/upload,
                  ToServer: Router1,
                  Verbose: true,
                  DeleteTarget: True
              );
              
          }
          
          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Here is a example for the log:

            Copying C:\BuildMaster\_SVCTMP\_E48\_D0\server\hyper-v\update network settings.ps1 to /root/upload/server\hyper-v\update network
            

            You can see that the forward slashes end up as part of the filename, which is wrong for Linux.

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

              Looks like it's definitely a regression in the v5 Transfer-Files operation. We'll get this fixed right away. Thanks for the report!

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

                OK, thanks for the update.

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

                  BM-1997 - FIX: Transfer-Files operation can create files with \ characters on Linux

                  Thanks very much. Works as expected :-)

                  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