Hi,

I'm trying to pass a parameter from one job in a build flow to another. I 
have a job called 'jenktest' which sets a variable ENV_TEST in a shell exec 
step. I want to catch that variable in the build flow and pass it to the 
next step.
What I am doing so far:

//#################
b=build("jenktest")
tmp = b.build.properties.environment["ENV_TEST"]
out.println 'variable returned by jenktest was:'+tmp
//#################

When no parameterized variable ENV_TEST was defined in 'jenktest' I get 
back an empty string. 
When a parameterized variable ENV_TEST is defined in 'jenktest' it returns 
its default value
When a parameterized variable ENV_TEST is defined in 'jenktest' and a value 
is passed to it in the build statement above I get back that value. (Not 
the one i set inside the job.)

I also tried to export that variable in the build step but had no luck. 
What do I have to do to get that variable back to the build flow / to 
modify that parameter?

Hope you can help me out.

Greetings,
Sebastian

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to