Pipeline with render template when returning Context
Closed this issue · 1 comments
crisp2u commented
Environment:
- Jenkins ver. 2.150.1
- Plugin verstion 2.16
When running a pipeline I'm interested if it's possible to run the gitChangelog Step and return context object but then use a Mustache template to render a string.
I know that the library behind the plugin has the builder object but i'm not sure if and how I should use it directly. The plugin step seems to do an abstraction of builder but I don't know if I can use it in my case.
Thanks
tomasbjerre commented
The context object is just a POJO so perhaps you can find some way of doing
that.
An alternative might be to just use groovy to construct a string from the
context. See
http://docs.groovy-lang.org/docs/next/html/documentation/template-engines.html
Den ons 6 mars 2019 17:25Cristian Pop <notifications@github.com> skrev:
… Environment:
- Jenkins ver. 2.150.1
- Plugin verstion 2.16
When running a pipeline I'm interested if it's possible to run the
gitChangelog Step and return context object but then use a Mustache
template to render a string.
I know that the library behind the plugin has the builder object but i'm
not sure if and how I should use it directly. The plugin step seems to do
an abstraction of builder but I don't know if I can use it in my case.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#33>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAa1E618xrF_qE7fxEfx4WwmILnjlKwuks5vT-vlgaJpZM4bhSds>
.