I think the best way is to use the Token Macro Plugin https://wiki.jenkins-ci.org/display/JENKINS/Token+Macro+Plugin
/B On Tue, Apr 12, 2016 at 1:25 PM, Shurik <[email protected]> wrote: > Hi, > > I write build step plugin that has few parameters in the configuration > page. > > I want to support the option to use the "This build is parameterized" > parameters in my configuration. > > How I can translate the $PARAM to the real value via code. > > e.g. > > I added the FILE_LOCATION string parameter in "This build is > parameterized" option. > In my plugin configuration parameter i set as below > FILE=${FILE_LOCATION} > > Now in code I want translate the ${FILE_LOCATION} to the real value that > user set when trigger the build. > > Thanks, > Shurik > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/73b944ab-f761-4ecd-8071-3ac3371ad15c%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/73b944ab-f761-4ecd-8071-3ac3371ad15c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0%2BOmhr7%2B1Z6-YAf-OAG7TUZ4Pm13%3D0%2BFpkPZr5y04B3w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
