Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-19 Thread srivathsa . puliyala
Issue solved : https://stackoverflow.com/questions/49884904/access-variable-in-email-ext-template-using-jenkins-pipelin e -- You received this message because you are subscribed to the

Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-19 Thread srivathsa . puliyala
Issue resolved and answered at : https://stackoverflow.com/questions/49884904/access-variable-in-email-ext-template-using-jenkins-pipeline On Friday, April 13, 2018 at 7:11:57 PM UTC-4, srivathsa...@gmail.com wrote: > > I am trying to attach the template file using Jenkins pipeline, emailext. >

Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-14 Thread srivathsa . puliyala
Didn't help when I replaced with *ENV(var="PROJNAME") *in template file*. *I received the email as: ## This is a Heading Job is ENV(var="PROJNAME") ## On Friday, April 13, 2018 at 7:12:58 PM UTC-4, slide wrote: > > You can

Re: Access environment variable in email ext template using Jenkins pipeline

2018-04-13 Thread Slide
You can use ENV(var="PROJNAME") when using a script template. This should work for all tokens. On Fri, Apr 13, 2018 at 4:11 PM wrote: > I am trying to attach the template file using Jenkins pipeline, emailext. > Variable (PROJNAME) is not accessible in the template

Access environment variable in email ext template using Jenkins pipeline

2018-04-13 Thread srivathsa . puliyala
I am trying to attach the template file using Jenkins pipeline, emailext. Variable (PROJNAME) is not accessible in the template file and I am receiving exceptions as an email: *Exception raised during template rendering: No such property: env for class: SimpleTemplateScript21