Take the deployment of https://gitee.com/tengge1/ShadowEditor as an example 1. Install JDK 1. Download jdk and install it using jdk-8u261-linux-x64.tar.gz as an example 2. Create a java folder cd /usr/local mkdir java 3. Then unzip the jdk package tar -zcvf jdk-8u261-linux-x64.tar.gz 4. Configure environment variables vi /etc/profile 5. Join 6. Save and exit :wq 7. Effective configuration file source /etc/profile 8. Check the JDK version java -version 2. Install node 1. Go to the official website to download the file that matches your system: English website: https://nodejs.org/en/download/ Chinese website: http://nodejs.cn/download/ Take downloading node-v12.13.0-linux-x64.tar as an example 2. Unzip cd /usr/local tar -xvf node-v12.13.0-linux-x64.tar 3. Check the node version node -v 3. Install go 1. Download Download address: https://golang.google.cn/dl/ Take go1.15.2.linux-amd64.tar.gz as an example 2. Unzip cd /usr/local tar -zcvf go1.15.2.linux-amd64.tar.gz 3. Configure environment variables vi /etc/profile 4. Join Note: go get cannot be accessed directly in China, so you must first set up a proxy (to solve the problem that some go packages cannot be downloaded) 1). Enable the go modules feature to enable proxy mode export GO111MODULE=on 2). Set the GOPROXY environment variable to set the proxy address export GOPROXY=https://goproxy.io 5. Save and exit :wq 6. Effective configuration file source /etc/profile 7. Check the go version go version 4. Install Jenkins 1. Download linux jenkins, official website address https://pkg.jenkins.io/redhat/ 2. Create a folder in the root directory mkdir jenkins 3. After downloading, put jenkins-2.174-1.1.noarch.rpm into the jenkins directory Enter the jenkins directory and decompress it. Decompression command: rpm -ivh jenkins-2.174-1.1.noarch.rpm After successful decompression, check the directory where Jenkins is installed whereis jenkins 4. Find the jdk installation path ps -ef | grep java 5. Modify the /etc/init.d/jenkins file and configure the jdk installation path vi /etc/init.d/jenkins 6. Start Jenkins service jenkins start 7. Visit http://serverIP:8080/ and enter the jenkins password 8. Install Jenkins custom recommended plugins 9. Create Jenkins User 10. Configure git and enter the global tool configuration. Now Jenkins is installed and you can log in. 4. Build the project 1. Create a new view 2. Create a new task 3. Configure the project, configure the git project 4. Build triggers 5. Configure the shell command, then apply and save 6. Click Build, the blue ball indicates a successful build 7. Enter the Linux server and start the project (nohup usage: run commands without hanging up) cd /var/lib/jenkins/workspace/ShadowEditor/build 8. Visit http://ip:2020 Summarize This is the end of this article about the Jenkins project building process under Linux (taking CentOS7 as an example). For more relevant content about building Jenkins on Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Implementation of MySQL5.7 mysqldump backup and recovery
>>: JavaScript anti-shake and throttling explained
Don’t introduce a front-end UI framework unless i...
Table of contents Preface Component Introduction ...
export default ({ url, method = 'GET', da...
Table of contents Preface Benefits of axios encap...
I had been working on the project before the New ...
After configuring the tabBar in the WeChat applet...
This article shares the data display code for Jav...
Original link: https://vien.tech/article/157 Pref...
I used the Mysql FIND_IN_SET function in a projec...
Background: A long time ago (2017.6.5, the articl...
Mongodb has a db.serverStatus() command, which ca...
Nginx's shared memory is one of the main reas...
Table of contents background Function Purpose Ide...
Let's take a look at the process of installin...
1. One-stop solution 1. Problem analysis and loca...