How do you access parameters set in the \"This build is parameterized\" section of a \"Workflow\" Jenkins job?
parameters
TEST CASE
I think the variable is available directly, rather than through env, when using Workflow plugin. Try:
node() { print "DEBUG: parameter foo = ${foo}" }