FAILURE: Build failed with an exception

test FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:test’.

There were failing tests. See the report at: file:///builds/retail-catalyst/category-strategy-app/build/reports/tests/test/index.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 51.078 secs
ERROR: Job failed: exit code 1

in local machine build success but in repository job failed** and i got this exception let me know why this occured