The best idea is to depend on the token-macro plugin and then use the
methods in there to parse the text.

On Mon Jan 12 2015 at 2:15:59 PM Daniel Anechitoaie <daniels0...@gmail.com>
wrote:

> Hi.
>
> I have a plugin that has a textbox. How can I parse the contents of that
> textbox for vars and tokens. Like the extended email plugin does. If you
> write $TOKEN this will be replaced with the actuall content of the token
> when the email is received. How can I do the same in my plugin? I'm not
> looking to add new env vars, but to access the existing ones.
>
> So for example if a user enters "Build${BUILD_ID}" I would get "Build
> *ACTUAL_BUILD_ID*".
>
> Thanks for any suggestions or hints.
>
> --
> 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 jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/584ed4d7-11ac-491e-91d6-e398dfb00090%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/584ed4d7-11ac-491e-91d6-e398dfb00090%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVcQM9gPsFoPb9d9amiFnknkQd_1jhk54NX%2BC0YMBm757w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to