I'm facing the same problem

trying to do such things like :
${FILE:${ENV:INSTALL_DIR}/Success.html}

=> the result is : I see that the env variable is resolved but not the file

did a bit of digging, i believe the problem is here
RichTextPublisher.java (line 165)

Matcher matcher = FILE_VAR_PATTERN.matcher(text);
int start = 0;
while (matcher.find(start)) {
String fileName = matcher.group(2); <----- HERE
FilePath filePath = new FilePath(build.getWorkspace(), fileName);
if (filePath.exists()) {
String value = filePath.readToString();
if (matcher.group(1).length() != 4) { // Group is file_sl value = value.replace("\n", "").replace("\r", ""); }
vars.put(String.format("%s:%s", matcher.group(1), fileName), value);
}
start = matcher.end();
}

can we do something like

String fileName = replaceVars(matcher.group(2), vars);

that might do the job, no?

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