On Friday, February 19, 2016 at 3:55:57 PM UTC+2, Johann Muller wrote:
...
> return newJob.getEnvVars().get(varName,null)
>
...
Thank you for the useful pointers. FYI `getEnvVars` not very reliable. I
wanted to get in this way but what I've got is only the first line of the
string for some reason. Also `getEnvVars` is deprecated. I actually wanted
to get a variable that was set by a parameter. So I ended up doing:
> paramValue = build.allActions.
> find {it in hudson.model.ParametersAction}.
> getParameter("MY_PARAM_NAME").
> value
Regards.
--
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/b588d086-1f5c-4cce-aa2d-29b34c0cee13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.