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.



  • 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



  • 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!



  • 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
        );
        
    }
    


  • 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.



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



  • OK, thanks for the update.



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

    Thanks very much. Works as expected :-)



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation