当前位置:网站首页>Jenkins of the integrate tool
Jenkins of the integrate tool
2022-06-11 23:33:00 【Jiangxiaonan】
Integrate Tools

Continuous integration 、 There are many tools for continuous deployment , among Jenkins Is an open source continuous integration platform .
Jenkins It involves the task of publishing the written code to the test environment and production environment , And it also involves tasks such as building projects .
Jenkins A lot of plug-ins are needed to ensure work , High installation cost , We will be based on Docker build Jenkins.
preparation
The server suggests 2 nucleus 4G The above configuration .
Get ready jdk and maven Installation package . among maven Need to be in setting.xml Configuring the mirror source and jdk1.8 Plug in for , as follows :
# Alibaba cloud image address
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
1. Jenkins Introduce
Official website :https://www.jenkins.io/
Baidu Encyclopedia :Jenkins It's an open source software project , Is based on Java A continuous integration tool for development , Used to monitor continuous repetitive work , To provide an open and easy-to-use software platform , Enable continuous integration of software projects .
Jenkins Widely applied , Most Internet companies use Jenkins coordination GitLab、Docker、K8s As an implementation DevOps Core tools of .
Jenkins The most powerful is the plug-in ,Jenkins The government provides a large number of plug-in Libraries , From dynamic CI/CD Various trivial functions in the process .

Jenkins The main job is to GitLab Pull and build the engineering code that can be built on , According to the process, you can choose to publish to the test environment or production environment .
It's usually GitLab After a lot of testing on the code , Determine the release version , Then publish to the production environment .
2. Jenkins install
Pull Jenkins Mirror image
docker pull jenkins/jenkins
To write docker-compose.yml
version: "3.1"
services:
jenkins:
image: jenkins/jenkins
container_name: jenkins
ports:
- 8080:8080
- 50000:50000
volumes:
- ./data/:/var/jenkins_home/
Note that the image version number should correspond to . Pay attention to the mount directory
data, The configuration of later plug-ins should be modified here .
Start the mirror
docker-compose up -d
The first start will be due to the data volume data The directory does not have permission, resulting in startup failure , Set up data Directory write permission

chmod -R a+w data/
because Jenkins Need to download a lot of content , However, due to the default download address, the download speed is slow , You need to reset the download address to the domestic mirror station
# Modify... In the data volume hudson.model.UpdateCenter.xml file
take https://updates.jenkins.io/update-center.json Amend to read as follows
# Replace the download address with http://mirror.esuni.jp/jenkins/update
# The plug-in source of Tsinghua university can also https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
After modification, restart
docker-compose restart.
Restart again Jenkins Containers , visit Jenkins( Need to wait a minute )

The page shows initializing , Wait a minute .
View password login Jenkins, Log in and download the plug-in
docker exec -it jenkins cat /var/jenkins_home/secrets/initialAdminPassword


Choose the plug-ins you want to install


explain : The plug-in download failed and is normal , You can also download it later , Click continue . The official website can also be downloaded .
After downloading the setting information, enter the home page




Download the two required plug-ins first



Git Parameter and Publish Over SSH
thus , The installation is successful !!!
边栏推荐
- [Delphi] determine the encoding method of the file (ANSI, Unicode, utf8, unicodebig)
- 2022年安全員-A證考題模擬考試平臺操作
- One to one correspondence of multiple schematic diagrams and PCB diagrams under Altium designer project
- mysql——find_in_set用法
- [day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect
- 栈(C语言)
- postgresql10 进程
- CVPR 2022 | meta learning performance in image regression task
- Unity3d C#开发微信小游戏音频/音效播放问题解决过程分享
- 帝国理工等最新《胶囊网络综述》论文,29页pdf阐述胶囊的概念、方法与应用
猜你喜欢

2022 R1 quick opening pressure vessel operation test questions and online simulation test

MySQL 8.0 解压版安装教程

04 automatic learning rate - learning notes - lihongyi's in-depth learning 2021

mysql5和mysql8同时安装

【Day8 文献泛读】Space and Time in the Child‘s Mind: Evidence for a Cross-Dimensional Asymmetry

Lake Shore - supertran VP continuous flow cryogenic thermostat system

2022年安全员-A证考题模拟考试平台操作

Implementation scheme of iteration and combination pattern for general tree structure

HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications

Google搜索為什麼不能無限分頁?
随机推荐
Unity3d C # development of wechat games audio / sound playback problem solving process sharing
Live broadcast preview | featurestore meetup V3 is coming!
Simulated examination question bank and simulated examination of 2022 crane driver (limited to bridge crane)
Two ways of using reuqests in RF
Pourquoi Google Search ne peut - il pas Pager indéfiniment?
CD流程
Processus postgresql10
Setting alias alias and @ reference note
El select drop-down box style combined with El table (pseudo) combined with drop-down selection
Handwritten simple promise
Discrete mathematics attention points, priority problems
C language simple exercise No.17, about the combination of for and while loops
帝国理工等最新《胶囊网络综述》论文,29页pdf阐述胶囊的概念、方法与应用
我的创作纪念日
2022年高处安装、维护、拆除操作证考试题库模拟考试平台操作
Read the logstash principle
【Day4 文献精读】Space–time interdependence: Evidence against asymmetric mapping between time and space
mysql——find_ in_ Set usage
移印工艺流程及应用注意事项
Introduction aux bases de SOLR