Auto DevOps not working for Java Projects

Summary

Auto DevOps fails for all Java projects on the in the Test job in the test step after the build with the error

       [INFO] ------------------------------------------------------------------------
       [INFO] BUILD SUCCESS
       [INFO] ------------------------------------------------------------------------
       [INFO] Total time: 02:10 min
       [INFO] Finished at: 2018-04-03T19:37:09+00:00
       [INFO] Final Memory: 39M/352M
       [INFO] ------------------------------------------------------------------------
/tmp/buildpacks/05_buildpack-java/bin/test: line 24: mvn: command not found

Steps to reproduce

  • Create a simple Java Maven project
  • Enable Auto DevOps for the project
  • Pipeline executes and test phase fails after build

Example Project

What is the current bug behavior?

The Test job fails prematurely.

What is the expected correct behavior?

The Test job should pass as mvn test passes locally. Also of interest, the mvn build stage of the test job passes, and then later complains it cannot find mvn.

Relevant logs and/or screenshots

https://gitlab.com/gitlab-com/customer-success/demos/spring-demo/-/jobs/60933248

Output of checks

This bug happens on GitLab.com

Possible fixes

I am wondering if this is an issue in the underlying buildpack, but am not sure how to start diagnosing that.

/cc @dzaporozhets @bikebilly