On Tue, 19 Aug 2014 07:05:40 -0700
Slide <
slide...@gmail.com> wrote:
> You are correct. Token macro expansion only happens if it is
> explicitly used in the code that uses the value on the server side.
> Most fields in Jenkins don't do token macro expansion. The EnvInject
> may allow you to do something like what you want.
Thanks for confirmation. Then, this looks like a bug for me. Well, on
second thought, token macro expansion is provided by a plugin, while
job params is a core feature. But well, lot of things were split from
core in last versions of Jenkins, why features which are truly global
and reusable can't go in opposite direction and be merged into core?
Are there other concerns which I may be missing (security, whatever)
with support for macro expansion in job params? Otherwise, I'll file a
bug.
Thanks for hint about EnvInject, I intended to look into it too. The
issue, I wanted to wrote plugin-like functionality in Groovy. And
indeed, it's possible and easy. But then integrating it into Jenkins in
secure and user-friendly manner appear to cause more trouble and
headache than writing a plugin in Java ;-(.