Hi,
You are right. This has affected me too, since I use the same technique as you to figure out if
a parameter exists.
I think that the way that build parameters are accessed inside pipeline scripts
has been changed in workfow-cps-plugin 2.17 as part of:
Can you can try something like:
node {
envVars = env.getEnvironment()
println envVars.containsKey("MY_PARAM")
println enVars.containsKey("MY_PARAM2")
}
The alternative is to try accessing MY_PARAM and handle any exception thrown
if the parameter does not exist, as pointed out by Michael Lasevich.
--
Craig