diff --git a/src/main/java/ru/yandex/qatools/allure/jenkins/ReportBuilder.java b/src/main/java/ru/yandex/qatools/allure/jenkins/ReportBuilder.java index d2d7616..2225dac 100644 --- a/src/main/java/ru/yandex/qatools/allure/jenkins/ReportBuilder.java +++ b/src/main/java/ru/yandex/qatools/allure/jenkins/ReportBuilder.java @@ -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; @@ -95,6 +96,9 @@ private ArgumentListBuilder getAllure2Arguments(final @Nonnull List 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());