You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JFrog CLI doesn't ignore the failed tests, which led the build became "unstable" and build failed.
Current behavior
When passing "-Dmaven.test.failure.ignore=true" in jf mvn deploy command, some test fail and user is getting these errors:
2024-06-25T21:18:57.7016614Z [ThreadedStreamConsumer] ERROR org.apache.maven.plugin.surefire.SurefirePlugin - Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.763 s <<< FAILURE! - in com.roche.upath.schedulers.unmark.service.impl.CaseUnmarkServiceImplTest
2024-06-25T21:18:57.7027306Z [ThreadedStreamConsumer] ERROR org.apache.maven.plugin.surefire.SurefirePlugin - testUnmarkBookmarkedCase Time elapsed: 1.715 s <<< FAILURE!
This makes the build becomes “unstable”
[main] WARNING org.jfrog.build.extractor.maven.BuildDeploymentHelper - Artifactory Build Info Recorder: unstable build, artifacts will not be deployed...
It looked like JFrog CLI would search for the failed tests under target/surefire-reports directory. If there are failed tests, the jars are not published.
jfsarang
changed the title
jf mvn doesn't ignores any failure that occurs during test execution
jf mvn doesn't ignore any failure that occurs during test execution
Jul 3, 2024
Any progress on this?
It's forcing CI changes across all of our repos that are using jf mvn.
This is a big down-side to using jFrog tool wrappers.
It would be a different story if the confirmed bugs were addressed in a timely fashion.
jfsarang
changed the title
jf mvn doesn't ignore any failure that occurs during test execution
jf mvn wrapper alters mvn behavior by not honoring -Dmaven.test.failure.ignore=true
Oct 1, 2024
Describe the bug
JFrog CLI doesn't ignore the failed tests, which led the build became "unstable" and build failed.
Current behavior
When passing "-Dmaven.test.failure.ignore=true" in jf mvn deploy command, some test fail and user is getting these errors:
This makes the build becomes “unstable”
and leads to
It looked like JFrog CLI would search for the failed tests under target/surefire-reports directory. If there are failed tests, the jars are not published.
Reproduction steps
I cloned the repo https://github.com/jfrog/project-examples/tree/master/maven-examples/maven-example and modified this line in /multi1/src/test/java/artifactory/test/AppTest.java
Add to pom.xml:
Then execute
the test is failing
The only way to overcome is setting -Dartifactory.publish.unstable=true .
Expected behavior
It should ignore all failed tests and complete the build without any failures.
JFrog CLI version
2.52.10.
Operating system type and version
macOS - 14.4.1 - 23E224
JFrog Artifactory version
No response
JFrog Xray version
No response
The text was updated successfully, but these errors were encountered: