Gitlab CI/CD runner : mvn command not found

前端 未结 4 1908
借酒劲吻你
借酒劲吻你 2021-01-06 06:17

Maven is well installed on my gitlab-runner server. When executing mvn clean directly on my repo it works, when running my pip

4条回答
  •  生来不讨喜
    2021-01-06 06:49

    Just add the maven docker image, add below line as first line:

    image: maven:latest or image: maven:3-jdk-10 or image: maven:3-jdk-9
    

    refer: https://docs.gitlab.com/ee/ci/examples/artifactory_and_gitlab/

提交回复
热议问题