This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: core
    • Environment:
      Jenkins ver. 2.107.2 on Windows Server 2008 R2 (x64)

      Hi!

      I'm using a "small" Groovy-script (with scriptler plugin) to copy files from or to the workspace of different builds, which maybe located on (different) agents.
      My first approach was to use (at least) the method FilePath.copyRecursiveTo(include_pattern, exclude_pattern, Destination), which is suitable if the destination-channel is equal to source-channel (same node or within master) or one of these channels is null (I.e, on master).

      But, if files should be copied between different agents, all files are copied to the master (at the given 'raw' path). Okay, I've found a solution for my script by using an temporary TGZ-File on the master as intermediate storage.
      Looking into the source-code of FilePath.copyRecursiveTo seems to ignore this 'illegal' combination and assumes, that the target is located on the master.

      Maybe the Core-implementation should detect this 4rd combination (dest-channel != src-channel and booth are not null) as unexpected and throws an exception (like 'unsuitable communication-partners').

      Best regards from Salzburg,
      Markus

            Assignee:
            Unassigned
            Reporter:
            GMC Software Development B&R Corporate
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: