How do you access parameters
set in the "This build is parameterized" section of a "Workflow" Jenkins job?
TEST CASE
foo
with default value bar text
.Add the code below to Workflow Script
:
node()
{
print "DEBUG: parameter foo = ${env.foo}"
}
RESULT
DEBUG: parameter foo = null
I think the variable is available directly, rather than through env, when using Workflow plugin. Try:
node()
{
print "DEBUG: parameter foo = ${foo}"
}