How to access parameters in a Parameterized Build?

前端 未结 10 2099
你的背包
你的背包 2020-11-29 04:44

How do you access parameters set in the \"This build is parameterized\" section of a \"Workflow\" Jenkins job?

TEST CASE

10条回答
  •  旧时难觅i
    2020-11-29 05:22

    I think the variable is available directly, rather than through env, when using Workflow plugin. Try:

    node()
    {
        print "DEBUG: parameter foo = ${foo}"
    }
    

提交回复
热议问题