How do you access parameters set in the "This build is parameterized" section of a "Workflow" Jenkins job?
parameters
TEST CASE
foo
bar text
Add the code below to Workflow Script:
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}" }
2.1m questions
2.1m answers
60 comments
57.0k users