Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47731

Maven jobs tests if MAVEN Home exists on slave not docker container

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I try to configure a maven job to be launched in docker container. The docker image has maven installed and configured on Jenkins (Maven installation) but when the task is build, jenkins checked if the maven installation exists on the jenkins slave and failed. 

      > git config core.sparsecheckout # timeout=10
      > git checkout -f 949469ff6dfe4c0877bf6f1e0188baf678f4d7f4
      Commit message: "[UPDATE] Added right locations for adapters"
      First time build. Skipping changelog.
      ERROR: Maven Home /usr/lib/apache-maven-3.3.9 doesnt exist
      Finished: FAILURE
       If I removed maven installation, the job won't be launched:
      ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              apoiget Adrian Poiget
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: