当前位置:网站首页>Jenkins基本配置
Jenkins基本配置
2022-06-11 23:31:00 【江小南】
承接上文。
1. Jenkins基本配置
将jdk和maven复制到挂载目录data中。
[[email protected] data]# pwd
/usr/local/docker/jenkins_docker/data
[[email protected] data]# ls
config.xml jdk jobs secret.key users
copy_reference_file.log jenkins.install.InstallUtil.lastExecVersion maven secret.key.not-so-secret war
hudson.model.UpdateCenter.xml jenkins.install.UpgradeWizard.state nodeMonitors.xml secrets workflow-libs
hudson.plugins.git.GitTool.xml jenkins.model.JenkinsLocationConfiguration.xml nodes updates
identity.key.enc jenkins.telemetry.Correlator.xml plugins userContent
[[email protected] data]#
目的是通过数据卷将jdk和maven映射到Jenkins容器内部。通过上一篇文章docker-compose.yml文件可以看出,映射的容器内部路径为
/var/jenkins_home/。
全局工具配置


配置jdk 
配置maven

将setting.xml配置为自己上传的。

这一步操作是为了让Jenkins能完成编译的工作。
系统配置


Publish Over SSH配置 

这一步操作是为了绑定目标服务器。将编译好的可运行包在目标服务器上运行起来。 连接方式可以选择密钥,也可以使用密码。
2. 流程梳理

我们再来看上篇文章中画的图,大概流程梳理为:
开发人员将代码提交至GitLab(Gitee、Github均可),通过Git Parameter插件实现了从GitLab仓库拉取代码,Jenkins进行编译(需要jdk和maven),然后用Publish Over SSH插件连接目标服务器运行,同时,目标服务器有容器化的运行环境。
至此,一套基本的流程准备工作完成。
边栏推荐
- 2022 high voltage electrician test question simulation test question bank and online simulation test
- Leetcode must review 20 lintcode (5466421166978227)
- 05 classification learning notes lihongyi's in-depth study 2021
- Lake Shore VNF 系列低温恒温器系统——流动蒸汽中的样品
- Implementation scheme of iteration and combination pattern for general tree structure
- 2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
- 显示商品详情【项目 商城】
- Altium designer工程下多个原理图和PCB图的一一对应
- Research Report on development trend and competitive strategy of global reverse osmosis membrane cleaning agent industry
- One to one correspondence of multiple schematic diagrams and PCB diagrams under Altium designer project
猜你喜欢

2022年R1快开门式压力容器操作考题及在线模拟考试

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

Wake up wrist - neural network and deep learning (tensorflow application) updating

Introduction aux bases de SOLR

Solr之基础讲解入门

商品热销排行【项目 商城】

Solr之基礎講解入門

Lake Shore - supertran VP continuous flow cryogenic thermostat system

【Day13-14 文献精读】Cross-dimensional magnitude interactions arise from memory interference

Fonctionnement de la plate - forme d'examen de simulation pour les agents de sécurité - Questions d'examen de certificat a en 2022
随机推荐
[naturallanguageprocessing] [multimodal] albef: visual language representation learning based on momentum distillation
Fonctionnement de la plate - forme d'examen de simulation pour les agents de sécurité - Questions d'examen de certificat a en 2022
JS common method collection
04 automatic learning rate - learning notes - lihongyi's in-depth learning 2021
2022 safety officer-a certificate test question simulation test platform operation
HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
[Delphi] determine the encoding method of the file (ANSI, Unicode, utf8, unicodebig)
C language simple exercise No.17, about the combination of for and while loops
【Day3 文献精读】Asymmetrical time and space interference in Tau and Kappa effects
HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
Data processing and visualization of machine learning [iris data classification | feature attribute comparison]
Two ways of using reuqests in RF
【自然语言处理】【多模态】ALBEF:基于动量蒸馏的视觉语言表示学习
【Day10 文献泛读】Temporal Cognition Can Affect Spatial Cognition More Than Vice Versa: The Effect of ...
2022年安全员-B证理论题库及模拟考试
[day4 literature intensive reading] space – time interdependence: evidence against Asymmetric mapping between time and space
机器学习之数据处理与可视化【鸢尾花数据分类|特征属性比较】
Dblink operation in Oracle
Vs code writing assembly code [microcomputer principle]
PHP mkdir(): Permission denied上传文件会把文件夹权限改为411权限