Skip to content

Commit

Permalink
add single file option
Browse files Browse the repository at this point in the history
  • Loading branch information
Louey11 authored and baev committed Nov 20, 2024
1 parent b60af52 commit e7d7981
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class ReportBuilder {
private static final String GENERATE_COMMAND = "generate";
private static final String OUTPUT_DIR_OPTION = "-o";
private static final String CLEAN_OPTION = "-c";
private static final String SINGLE_FILE_OPTION = "--single-file"
private static final String CONFIG_OPTION = "--config";

private final FilePath workspace;
Expand Down Expand Up @@ -95,6 +96,9 @@ private ArgumentListBuilder getAllure2Arguments(final @NonNull List<FilePath> re
arguments.add(CLEAN_OPTION);
arguments.add(OUTPUT_DIR_OPTION);
arguments.add(reportPath.getRemote());
if (SINGLE_FILE_OPTION != null){
arguments.add(SINGLE_FILE_OPTION)
}
if (configFilePath != null) {
arguments.add(CONFIG_OPTION);
arguments.add(configFilePath.getRemote());
Expand Down

0 comments on commit e7d7981

Please sign in to comment.