1. Firstly Jenkins depends on the Java environment. The server needs to install JDK and configure environment variables

# yum install Jenkins

3. Jenkins default port is 8080, login IP: 8080 can be accessed, or you can find JENKINS_PORT in /etc/sysconfig/jenkins directory

4. Create a task

5. Configure the git address, gitHub/gitLab/gitee, username, password, and branch of the code to be pulled

7. To execute NPM in Kenkins, you need to install Node

Query the NodeJS installation in the optional plug-ins

8. Core-js error was reported during shell execution, and the root cause was not found. Core-js is ^ in package.json for projects built using vueCli

* : It updates the current library version to the latest version in the first digit (major version), for example: "^12.2.2", the library will match updates to the latest version of 12.x. x, but not 13.X. x * ~: When downloaded, it will automatically update to the latest version of the middle number (minor version), for example: "~2.2.0", the library will be updated to the latest version of 2.2.X, but will not be updated to 2.3.X. Tilde was once the default symbol when NPM was installed, but has now been changed to caretCopy the code

Install NPM install to install core-js.

Note the problems encountered in deploying the VUE project in Jenkins