Issue Type: Bug Bug
Assignee: Alex Earl
Components: email-ext, envinject
Created: 29/Oct/14 10:16 AM
Description:

I have a job with "BUILD_LOCATION" string parameter which i alter and use it in my EXT-Email but it is same as before it was altered.

This was working perfectly on 1.569. then i upgraded to 1.584 including updating all plugins.

Steps to reproduce:-
1. Create new freestyle project

2. add 2x string parameters, "BUILD_LOCATION" and "BUILD_TYPE". Set defaults i.e. "LOC" and "TYPE"

3. Build Step execute shell echo ${BUILD_LOCATION}"/"${BUILD_TYPE}

4. Build step inject environment variable - BUILD_LOCATION=${BUILD_LOCATION}/${BUILD_TYPE}

5. Call EXT-EMAIL as post build - groovy script -

<STYLE>
BODY, TABLE, TD, TH, P { font-family:Verdana,Helvetica,sans serif; font-size:11px; color:black; }
h1 { color:black; }
h2 { color:black; }
h3 { color:black; }
TD.bg1 { color:white; background-color:#0000C0; font-size:120% }
TD.bg2 { color:white; background-color:#4040FF; font-size:110% }
TD.bg3 { color:white; background-color:#8080FF; }
TD.test_passed { color:green; }
TD.test_failed { color:red; }
TD.console { font-family:Courier New; }
</STYLE>
<BODY>

<TABLE>

<% WORKSPACE = build.getEnvironment(listener).get("BUILD_LOCATION")
%>
<TR><TD>Test for WORKSPACE:</TD><TD>${WORKSPACE}</TD></TR>
</TABLE>
</BR>
</BODY>

Environment: Master on Fedora 17 64 bit - ssh linux slaves also on Fedora 17 64 bit
Project: Jenkins
Priority: Major Major
Reporter: Sion O'Connor
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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