HI All

I want to use MarkupBuilder in pipeline code.

But I get 'java.lang.NoSuchMethodError: No such DSL method 'body' . Is 
there a workaround or alternative way to generate some HTML to send  in an 
email.


def makeHtmlTable (refs) {

def writer = new StringWriter()
def markup = new groovy.xml.MarkupBuilder(writer)
markup.html { 
 body {  
    some stuff 
 }
....



-- 
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/8d1ee614-9056-4f2a-8961-0d9a7a81a36f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to