I have a parameterized pipeline where we send an email during the post.  
One of the parameters is for the VHOST we are deploying to.  This parameter 
has a default value, but can be overridden in the jenkinsfile based on the 
branch being built.  In the jelly email template, I am getting the 
environment variables using:

<j:set var="buildenv" value="${build.getEnvironment(listener)}"/> 
<tr>
    <td>Deployed to:</td>
    <j:set var="vhost" value="${buildenv.get('VHOST')}"/>
    <td>${vhost}</td>
</tr>

The value for ${vhost} always comes back as the default value, not what was 
overridden in the jenkinsfile.  I'm pretty certain the value is overridden 
properly because the application is deployed to the correct vhost on the 
server.

How can I get the correct value to come through to the email template?

Thanks for any help.

-- 
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/96ea61b6-6cf7-4f25-b123-ad19c2e0f042%40googlegroups.com.

Reply via email to