Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Help with file transfer using input/output files approach #3326

cnuk ·
Hi,

I have 3 steps in a quickbuild configuration that run on 3 different build agents(server is not one of these).
I would like file generated in step1 to be sent to step2 node/build agent and the file generated in step2, to stpe3 agent.
I tried using input/output files approach but don't see the files being transferred anywhere. I don't see the file in the QB server either. We are using version 6.0.3 on Linux.
Can anyone give simple steps to make it work since QB documentation is not clear?

Thanks
  • replies 12
  • views 6783
  • stars 0
robinshen ADMIN ·
QB file transfer happens between parent step and child step. Assume step1 step2 and step3 resides in the same sequential container:
step1 -- use output files to transfer files generated by step1 back to parent node
step2 -- use input files to transfer files generated by step1 from parent node, and use output files to transfer files generated by step2 back to parent node
step3 -- use input files to transfer files generated by step2 from parent node
cnuk ·
Thanks. From the documentation, transferring the file to parent step wasn't clear, so had little trouble with that. The configuration is working as expected but is there a way to configure the file transfer to outside QB agent/server workspace path?
I know this can be achieved with simplate copy command in the shell script, but would like to avoid any hard coding, if at all possible.
robinshen ADMIN ·
You may specify absolute path as destination path of file transfer option if you do not want to put files inside workspace.
cnuk ·
Thanks again. How can I specify absolute path since I see following note in the step set up for source/destination file path?

"Optionally specify a path relative to the destination workspace. If not specified, the destination workspace directory is assumed."

I tried giving something like /opt/test/ but that is creating /opt/test/ directory in workspace path only. Is this a bug or there is some other place to specify the absolute path?
robinshen ADMIN ·
Please upgrade to latest QB6 version which allows specifying absolute path.
cnuk ·
As I mentioned in the first post, we are on version 6.0.3, where absolute path did not work.
Am I missing anything?

Thanks
robinshen ADMIN ·
Sorry I am not clear on this previously. Please upgrade to 6.0.27.
How to transfer file from agent to server
cnuk ·
Got it, thanks for the clarification.
Leemool ·

Hello,

I am digging up this subject because I have a problem with quickbuild under windows in order to recover a file from a triggered build.
I enter the absolute destination path of windows (D:\Test) in Send Output Files> Source Path field , but it tells me that it does not know this path.
Have you got an idea?

Regards

robinshen ADMIN ·

Can you please describe in detail how you've set up configurations? Or you may create a minimal test configuration and send the backup to [robin AT pmease DOT com].

Leemool ·

Hello,
Sorry for my late answer.
I fixed my issue by launching/using the 2nd machine for the triggered config (at first the 2nd machine was only used in the build triggered),which putting his adress in variable , in order to have the same node on the triggered configuration and get the file in parent config.

example when i have issue :

Step A => node A
child step (which trigger another config called TOTO) => node A
TOTO triggered on node B

Now i have :
Step A => node A
child step (which trigger another config called TOTO) => node B (i passed the node in var)
TOTO triggered on node B

with this i can pass files from node B to A

robinshen ADMIN ·

Thanks for sharing.