Modification of attachment body in plugin #2275
-
Hi, Is it a bug? Could you give me a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We removed the possibility to access the output directory when we introduced single-file mode. If you want to override the continents of attachments, you can override the data file by calling @Override
public void aggregate(final Configuration configuration,
final List<LaunchResults> launchesResults,
final ReportStorage storage) {
launchesResults.forEach(launch -> launch.getAttachments().entrySet()
.parallelStream()
.forEach(entry -> {
final String dataKey = Constants.dataPath("attachments", entry.getValue().getSource());
final Path content = entry.getKey();
final Path modifiedContent = modify(content);
storage.addDataFile(
dataKey,
modifiedContent
);
}));
} |
Beta Was this translation helpful? Give feedback.
We removed the possibility to access the output directory when we introduced single-file mode.
If you want to override the continents of attachments, you can override the data file by calling
storage.addDataFile
with the same data key.