![]() |
|
|
|
|
Change By:
|
christophe dehaudt
(04/Apr/14 7:11 AM)
|
|
Description:
|
"
I
really
would
like
to use ${FILE:mypath/xxx.html} to create
the
idea of
same rich content for all my jobs. Using
this
plugin, that you
will allow me to have a unique place when i
can
customize
change
the
message of
content and will be apply to all
the
build
job
The problem is that i want also to have variable interpolation
Like JENKINS-21333
,
but I miss you
i believe the problem
can
any other lightweight markup language like AsciiDoc
be solved at the same place
RichTextPublisher
.
You can use: https://github
java (line 165)
Matcher matcher = FILE_VAR_PATTERN
.
com/asciidoctor/asciidoctor
matcher(text); int start = 0; while (matcher.find(start)) { String fileName = matcher.group(2); <
-
java-integration
HERE
for
Java integration
213333 = replaceVars(matcher
.
group(2), vars);
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
|
|
|
|
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.