Jenkins installationJenkins is an open source CI&CD software used to automate various tasks including building, testing, and deploying software. Jenkins supports various ways of running, either through a system package, Docker, or through a standalone Java program. InstallThe operating system here is WSL Ubuntu. For installation of other systems, please refer to the official documentation of Jenkins. wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' sudo apt-get update sudo apt-get install jenkins Change the port number (the default port is 8080) The jenkins configuration file is in run sudo systemctl start jenkins # OR sudo service jenkins start If you want to start the machine automatically sudo systemctl enable jenkins If you encounter the following error during runtime, please install jdk first Basic Configuration After successful startup, enter the corresponding address Get the default administrator password in cat /var/lib/jenkins/secrets/initialAdminPassword After the command is executed, the following figure is returned After entering the password, enter the In this interface, we choose
After the input is completed, click the button Click the button Release the Vue project> Packaging the Vue project requires nodejs. After packaging, the packaged files need to be uploaded to the target server via ssh. So below we will install the Jenkins nodejs plug-in and the Publish Over SSH plug-in. Install the plugin-nodejs In the Jenkins main interface The search results are as follows After checking the plug-in and clicking Install, you will enter the plug-in download interface (as shown below) Configure the nodejs plugin In the Jenkins main interface Install The installation of In the Jenkins main interface Click the Create a taskAt this point, the jenkins plug-ins required for packaging vue have been installed. Now we start creating the task of packaging the vue project. The specific operation is as follows After clicking the button After installing the configuration mentioned in the figure above, click the So far, we have implemented a simple one-click packaging Jenkins configuration for the front-end project. This is the end of this article about using Jenkins to package and publish Vue projects with one click. For more relevant content about Jenkins packaging and publishing Vue projects, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Summary of some situations when Docker container disk is full
>>: mysql8.0.11 winx64 installation and configuration method graphic tutorial (win10)
Table of contents Preface 1. Why do we need bread...
This method was edited on February 7, 2021. The v...
In js, set the user to read a certain agreement b...
This article example shares the specific code of ...
Preface What is state We all say that React is a ...
Copy code The code is as follows: <HTML> &l...
Install Install ts command globally npm install -...
Scenario: A laradock development environment (php...
Rendering Commonly used styles in Blog Garden /*T...
Get the local public IP address through the conta...
1. Check whether port 80 is occupied. Generally, ...
This article uses examples to illustrate the prin...
Preface The CentOS environment variable configura...
1. Edit the PAM configuration file sudo vim /etc/...
First, install PHP5 very simple yum install php T...