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>
|