java - Jenkins thinks failing junit test is passing -
one stage in jenkins pipeline runs mvn verify
. test phase broken 2 execution stages, , in second stage, 1 of junit tests first stage re-run different parameters. works locally maven.
when jenkins runs same configs, seems ignore repeated test in second phase. if test fails, jenkins reports tests pass, though in jenkins console logs can see test did fail.
is there jenkins-friendly way of re-running same test in 2 different execution stages?
my maven pom.xml
file contains:
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-surefire-plugin</artifactid> <executions> <execution> <id>default-test</id> <goals> <goal>test</goal> </goals> <configuration> <!-- configs --> </configuration> </execution> <execution> <id>another-test</id> <goals> <goal>test</goal> </goals> <configuration> <!-- configs --> </configuration> </execution> </executions> </plugin>
Comments
Post a Comment