RE: [Build-flow plugin]

14 views
Skip to first unread message

Ginga, Dick

unread,
Sep 8, 2015, 8:07:19 AM9/8/15
to jenkins...@googlegroups.com

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: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Cyril Gandon
Sent: Tuesday, September 08, 2015 4:19 AM
To: Jenkins Users
Subject: [Build-flow plugin]

 

Hi all,

 

 

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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d85b87d8-c866-4124-80cc-a249662d932f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages