Problem Description:
When using packaged Jenkins, throw this wrong, but JDK and Maven are already installed, no problem of. Which Jenkins used Pipline pipeline project to deploy.
problem solved:
When using Pipline deployment projects in the region compiled code is automatically use the / usr / bin / java soft connection to compile, you need to see less of this soft connection is not pointing to the java command in the JAVA_HOME in bin directory, and if not, this soft connection directly removed, and the new: ln -s / usr / local / jdk8 / bin / java / usr / bin / java
Search the web are generally out of the question in the eclipse, no problem Jenkins deployment.