Templating inside a Groovy pipeline?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Templating inside a Groovy pipeline?

Peter Berghold
Is there a text templating solution that works inside a Groovy pipeline?

I tried both SimpleTemplate and StreamingTemplate and both error out with an exception somewhere in the bowels of the class.  Am perhaps stuck with using a callout to a Perl script to get this to work? 


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv3dzoyoWFzoYEMcxWADW9FKxe9PvcVeEcv2w465vnX6YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Templating inside a Groovy pipeline?

slide
You can probably use those in a @NonCPS method inside a pipeline, that is how I am using it. I pass in all the information I need to the method and use templating inside and return the generated contents.

On Fri, Mar 9, 2018, 11:58 Peter Berghold <[hidden email]> wrote:
Is there a text templating solution that works inside a Groovy pipeline?

I tried both SimpleTemplate and StreamingTemplate and both error out with an exception somewhere in the bowels of the class.  Am perhaps stuck with using a callout to a Perl script to get this to work? 


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv3dzoyoWFzoYEMcxWADW9FKxe9PvcVeEcv2w465vnX6YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVdtT%2B77XveUChPApD89aupkmw3m8qcJnLCUGkMceHw%3DbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.