Re: Parsing user's input that contains Jenkins env variables

2019-10-21 Thread Jesse Glick
On Mon, Oct 21, 2019 at 11:00 AM Slide wrote: > Token Macro will also work in pipeline jobs Perhaps, but I would not recommend it. https://jenkins.io/doc/developer/plugin-development/pipeline-integration/#variable-substitutions -- You received this message because you are subscribed to the Goo

Re: Parsing user's input that contains Jenkins env variables

2019-10-21 Thread Tal Yanai
Thanks Gavin, On Monday, October 21, 2019 at 6:00:24 PM UTC+3, slide wrote: > > Token Macro will also work in pipeline jobs and does provide some > additional benefit in that you can have code behind the macro that does > some stuff for you that you would have to do manually (and possibly throug

Re: Parsing user's input that contains Jenkins env variables

2019-10-21 Thread Tal Yanai
Thanks a lot, Will try that... On Monday, October 21, 2019 at 6:00:24 PM UTC+3, slide wrote: > > Token Macro will also work in pipeline jobs and does provide some > additional benefit in that you can have code behind the macro that does > some stuff for you that you would have to do manually (an

Re: Parsing user's input that contains Jenkins env variables

2019-10-21 Thread Slide
Token Macro will also work in pipeline jobs and does provide some additional benefit in that you can have code behind the macro that does some stuff for you that you would have to do manually (and possibly through either @NonCps or shared library). For something simple like a single parameter or en

Re: Parsing user's input that contains Jenkins env variables

2019-10-21 Thread 'Gavin Mogan' via Jenkins Developers
For something like a freestyle plugin, I think you need to use the token macro plugin - https://wiki.jenkins.io/display/JENKINS/Token+Macro+Plugin for pipeline, groovy will process the string before it gets to your code On Mon, Oct 21, 2019 at 12:30 AM Tal Yanai wrote: > Hi, > > Suppose I have m

Parsing user's input that contains Jenkins env variables

2019-10-21 Thread Tal Yanai
Hi, Suppose I have made a plugin implementation (a step) that asks the user for a location (path) to a file on the disk. When the user supply the value (using the job's configuration) he is using Jenkins variables/params such as ${JOB_NAME} as part of the path he supply. So for example, an inp