Jenkins: can't run the build script

hi,

I am running docker on linux, and trying to follow the tutorial as the web instructs:

When i try to run the build scrip the following message prompted:

  • /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/maven/bin/mvn clean install -Papp-docker-image
    found
    /usr/lib/jvm/java-11-openjdk-amd64
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /usr/lib/jvm/java-11-openjdk-amd64/bin/java
    Build step ‘Execute shell’ marked build as failure
    [PostBuildScript] - [INFO] Executing post build scripts.
    [ci-test] $ /bin/sh -xe /tmp/jenkins446925403656519371.sh
  • cd sample
  • sudo docker-compose -p app-14 --file src/test/resources/docker-compose.yml down
    Removing network app14_default
    Network app14_default not found.
    Finished: FAILURE

but when i try to run the “mvn clean install -Papp-docker-image” manually the following message prompted:

should i find another jenkins image that exists for me to do the tutorial? thx!

hi, could anybody help me for the problem i encountered several days ago? thx