I have a Jenkins Pipeline job which uses "Pipeline script from SCM" as my pipeline. One of this block's parameters is "Branch to build" of course. How can I used an environment variable for the text block? I tried, for example , $branchToBuild, ${branchToBuild} or "${branchToBuild}" and it just takes those as literal values and does not extrapolate the string. I do have that variable defined and use it in other jobs.
Is it just not possible to do this? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/829ef574-de14-4277-b391-185d56e485aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.