Jenkins executes the shell command, sometimes prompting "command not found"

Source: Internet
Author: User

The problem is that environment variables are not accurately

(1) Check that the maven you set in Jenkins is accurate, and you can see if there is a MAVEN option in the new job with the "New Job" button, not exactly what you configured

If you download the plugin, also refer to the previous steps to see if the plugin works.

(2) Check that all the scripts executed in Jenkins are configured with the correct MAVEN path, because if a MAVEN path was previously configured and the environment variable is the one you installed, then only the environment variable that was first set in the script will be

Environment Variables Cat/etc/profile View and add

(3) Check whether the MAVEN environment on the server where Jenkins is installed is installed, or if the MAVEN environment is installed on the server where Jenkins compiles (primarily for Jenkins to call MAVEN commands for packaging)

(4) The situation is basically so much "no picture"

Jenkins executes the shell command, sometimes prompting "command not found"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.