Green build with failed tests at Jenkins
Closed this issue · 1 comments
RomaSha2009 commented
Hi! I'm faced with an issue that my builds are Success at Jenkins even if tests are failed.
After that the next builds are triggered. That is not good for me.
My Maven version 3.0.4 and I limited by it.
And here is my POM setup
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.0</version>
<executions>
<execution>
<id>acceptance-test</id>
<phase>integration-test</phase>
<goals>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<properties>
<property>
<name>dataproviderthreadcount</name>
<value>10</value>
</property>
</properties>
<rerunFailingTestsCount>0</rerunFailingTestsCount>
<testFailureIgnore>true</testFailureIgnore>
<parallel>classes</parallel>
<reuseForks>false</reuseForks>
<includes>
<include>**/*RunCukeTestIT.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>3.12.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>MyProject</projectName>
<outputDirectory>${project.build.directory}/cucumberHtmlReport/</outputDirectory>
<cucumberOutput>${project.build.directory}/cucumber-report.json</cucumberOutput>
<parallelTesting>true</parallelTesting>
<checkBuildResult>true</checkBuildResult>
</configuration>
</execution>
</executions>
</plugin>
I have tried to change goals but no luck.
I need help. What I'm doing wrong? Why my build always green?
damianszczepanik commented
Upgrade to newer version and check readme so you can configure it properly