Spring boot application build failed due to test failure

java
integration-tests

#1

Hi,

Build of my Spring boot application is failing and showing below in logs:

[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.764 s
[INFO] Finished at: 2019-01-16T06:56:09Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project demo: There are test failures.

However, the build is passing successfully on my local. I am using the default Java project CircleCI config.yml file. Moreover the project does not contain much code instead of a basic structure to build application on top of it.

Kindly let me know if I am missing anything.

Thanks


#2

Changing the Docker image from: circleci/openjdk:8-jdk to circleci/openjdk:8u171-jdk fixed the issue.


closed #3

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.