I don’t use the workflow plugin I use the build flow plugin, but I one way 
would get be like this:

thejob.properties["environment"]["P4_CHANGELIST"]

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Andy Piper
Sent: Wednesday, February 04, 2015 10:45 AM
To: jenkinsci-users@googlegroups.com
Subject: [workflow-plugin] how do you access job output parameters?

In particular I have a job that uses p4 and therefore sets the variable 
P4_CHANGELIST which I can pass to downstream jobs. How do I access this 
parameter from a job in order to pass it on when using the workflow plugin?

I want something like:

def thejob = build('myjob');
build job: 'nextjob: parameters: thejob.P4_CHANGELIST

or something. I'm sure it's simple but I cannot find any documentation that 
gives me any clues.

Thanks

andy
--
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-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c73b6132-ea93-4708-a718-477355061d1b%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/c73b6132-ea93-4708-a718-477355061d1b%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F2781%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Reply via email to