Try an environment variable like this for your groovy script: 

${ENV(var: "testname")} 

----- Original Message -----
From: "mickeys" <[email protected]> 
To: [email protected] 
Sent: Wednesday, April 30, 2014 10:02:00 AM 
Subject: Re: How to get a parameter into my Email-Ext plugin 

Hi, 

thx for answering. 

This is what I got when I try it. I put this in my html-template ${ENV, 
var="testname"} (testname is a string variable I have setup) 

and got this: 



^ 1 error groovy.lang.GroovyRuntimeException: Failed to parse template 
script (your template may contain an error or be trying to use expressions 
not currently supported): startup failed: SimpleTemplateScript99.groovy: 51: 
unexpected token: ENV @ line 51, column 6. 

${ENV, var="testname"} 


all I did was put it like this in the html code 
<p> ${ENV, var="testname"}</p> 





-- 
View this message in context: 
http://jenkins-ci.361315.n4.nabble.com/How-to-get-a-parameter-into-my-Email-Ext-plugin-tp4700271p4700276.html
 
Sent from the Jenkins users mailing list archive at Nabble.com. 

-- 
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 [email protected]. 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to