Skip to content

Modification of attachment body in plugin #2275

Answered by baev
biski asked this question in Questions & Support
Discussion options

You must be logged in to vote

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.

@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 = e…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@biski
Comment options

Answer selected by baev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants