The project works in conjunction webdriver + testng + jenkins + allure2. The problem is, if you run the mvn clean test locally, and then allure serve target / allure-results, the report is generated normally. But jenkins pulls old suite. My pom
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <aspectj.version>1.8.10</aspectj.version> <allure.version>2.0-BETA18</allure.version> <selenium.version>3.5.3</selenium.version> <maven.compiler.version>3.7.0</maven.compiler.version> </properties> <dependencies> <dependency> <groupId>io.qameta.allure</groupId> <artifactId>allure-testng</artifactId> <version>${allure.version}</version> </dependency> <dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>${selenium.version}</version> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.11</version> </dependency> <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>6.2.1.jre8</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.25</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven.compiler.version}</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20</version> <configuration> <suiteXmlFiles> <suiteXmlFile>testng-suite.xml</suiteXmlFile> </suiteXmlFiles> <argLine> -Djava.library.path=${basedir}/lib -javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar" </argLine> <systemProperties> <property> <name>allure.results.directory</name> <value>${project.build.directory}/allure-results</value> </property> </systemProperties> </configuration> <dependencies> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>${aspectj.version}</version> </dependency> </dependencies> </plugin> </plugins> </build> <reporting> <excludeDefaults>true</excludeDefaults> <plugins> <plugin> <groupId>io.qameta.allure</groupId> <artifactId>allure-maven</artifactId> <version>2.8</version> <configuration> <reportVersion>2.3.1</reportVersion> <resultsDirectory>${project.build.directory}/allure-results</resultsDirectory> </configuration> </plugin> </plugins> </reporting> 
git clean -fdxbeforegit clean -fdx. (Be careful, the command deletes all unversioned files, both ignored and not). - Nick Volynkin ♦mvn cleanshould do the same thing. Check ifmvn cleanis done on jenkins. Read the assembly logs. - Nick Volynkin ♦