Yes, I use the token-macro plugin extensively in email-ext.

On Tue Jan 13 2015 at 1:50:45 AM Daniel Anechitoaie <daniels0...@gmail.com>
wrote:

> Perfect, Thank you.
> I think the extended emails plugin does the same.
>
> On 12 Jan 2015, at 23:39, Slide <slide.o....@gmail.com> wrote:
>
> 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 a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-dev/gTBL05WUhQg/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/d/msgid/jenkinsci-dev/CAPiUgVcQM9gPsFoPb9d9amiFnknkQd_1jhk54NX%2BC0YMBm757w%40mail.gmail.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/8B22B236-DCB4-4082-A76A-3C924D0B6744%40gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/8B22B236-DCB4-4082-A76A-3C924D0B6744%40gmail.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/CAPiUgVc33R2x9gumAzDp3ZYfN22j17tx0y49zDqw76pXJfHFbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to