Start your builds like this: build2 = build( “job2”)
When that returns, you use the build2 variable to get at the log like this (you can use this call to get any number of lines) var = build2.getLog() you can use println just to print things to the console so: println var will put is in this jobs log. I keep this link in my favorites. It tells all the functions you can call using the build2 object: http://javadoc.jenkins-ci.org/index.html?hudson/model/AbstractBuild.html From: [email protected] [mailto:[email protected]] On Behalf Of Cyril Gandon Sent: Tuesday, September 08, 2015 4:19 AM To: Jenkins Users Subject: [Build-flow plugin] Hi all, I'm using the build flow plugin<https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin> Let's say I have 3 jobs: job1 says build( "job2") And then, job2 says build( "job3") I would like to see the output of each build in the "main" build job1. In the ideal world, each console output should contains the output of their subbuilds. job1 should contains information on job2 and job3 job2 should contains information on job3. Is their a way to do that? I see that we have access to the variable out You can also access some pre-defined variables in the DSL : - "out" the flow build console But I have no idea how to use that variable to do what I need. Thank you, Cyril. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E2D8667F6F%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.
