Use a template engine to generate Jenkins files, I suggest the 
StringTemplate <https://www.stringtemplate.org/> template engine.
It's a purely declarative template.
There are examples in the intro doc 
<https://github.com/antlr/stringtemplate4/blob/master/doc/introduction.md> 
that you can try in Groovy.

Martin

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/07665765-05d3-4f36-8083-b0b0c4697ab8%40googlegroups.com.

Reply via email to