DevOps持续集成与交付
作者:小教学发布时间:2023-12-07分类:程序开发学习浏览:109
概述
Jenkins是一个支持容器化的部门,使用Java运行环境的开源软件,使用Jenkins平台可以定制化不同的流程和任务,以自动化的机制支持DevOps领域中的CI和CD,在软件开发和运行的流程中自动化地进行软件工程项目的编译、构建、打包、测试、发布以及部门,本文主要是描述使用Jenkins支持DevOps的实施过程
环境描述
服务器IP地址:192.168.0.100 The server section is based on Java applications,Docker containers |
B serverIP地址:192.168.0.102 该服务器部门部署Nexus存储库服务,GitLab存储库服务,Docker容器引用 |
C serverIP地址:192.168.0.106 该服务器部门部署Jenkins平台服务,Docker容器调用 |
准备服务器运行环境
In this paper,the author introduces the principle and application of the mechanism of mechanical mechanism.
In this paper,we study the relationship between the factors of the
如所示,在C服务器上运行maven,Jenkins
本地代码工程
The results showed that the project code engineering is submitted to the GitLab code库in the local development environment to B server.
in ord to achieve that above mentioned design,
Jenkins运行环境配置
in ord to achieve that above mentioned design,
如所示,在GitLab用户设置界面配置git的ssh-key成功
The results showed that the accessory address of GitLab was configured on B server in C server.
如上所示,在C服务器上拉取B服务器GitLab上的测试2023项目代码工程成功
Jenkins构建项目配置
如所示,在Jenkins桌面上安装Blue Ocean插件成功
如所示,在Jenkins台面上新建一条测试2023的流水线项目
如上所示,在Jenkins界面上,配置项目test2023的本地GitLab类库对应的代码工程目录
In this paper,we discuss the relationship between the factors of the mechanical properties and the mechanical properties of the mechanical properties of the mechanical properties.
/usr/lib/systemd/system/jenkins.service hudson.plugins.git.GitSCM.ALLOW_PROGRAM_PROGRAM KOUT =true |
The results showed that the results show
/etc/maven/settings.xml |
in that example shown in fig. 1,
如上所示,在Jenkins正面的Blue Ocean上建造项目测试2023成功
Jenkins部门项目配置
ssh-keygen ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.0.100 ssh 192.168.0.100
|
In this paper,we discuss the relationship between the mechanism and the relationship between the mechanism.
如所示,在项目工程代码上编码部门发布的脚本deploy.sh
如所示,在Jenkins文件上添加部门部署发布的步骤deploy.sh,设置Jenkins使用root用户启动
所示,在Jenkins正面Blue Ocean显示项目建设成功,发布项目成功
The results showed that the technique for the determination of the toxicity of the mixture was simple and the results showed that the toxicity of the mixture was low.
- 上一篇:利特科德100。相同的树
- 下一篇:JAVAEE SpringMVC中json的使用
- 程序开发学习排行
-
- 1鸿蒙HarmonyOS:Web组件网页白屏检测
- 2HTTPS协议是安全传输,为啥还要再加密?
- 3HarmonyOS鸿蒙应用开发——数据持久化Preferences
- 4记解决MaterialButton背景颜色与设置值不同
- 5鸿蒙HarmonyOS实战-ArkUI组件(RelativeContainer)
- 6鸿蒙HarmonyOS实战-ArkUI组件(Stack)
- 7鸿蒙HarmonyOS实战-ArkUI组件(GridRow/GridCol)
- 8[Android][NDK][Cmake]一文搞懂Android项目中的Cmake
- 9鸿蒙HarmonyOS实战-ArkUI组件(mediaquery)
- 最近发表
-
- WooCommerce最好的WordPress常用插件下载博客插件模块的相关产品
- 羊驼机器人最好的WordPress常用插件下载博客插件模块
- IP信息记录器最好的WordPress常用插件下载博客插件模块
- Linkly for WooCommerce最好的WordPress常用插件下载博客插件模块
- 元素聚合器Forms最好的WordPress常用插件下载博客插件模块
- Promaker Chat 最好的WordPress通用插件下载 博客插件模块
- 自动更新发布日期最好的WordPress常用插件下载博客插件模块
- WordPress官方最好的获取回复WordPress常用插件下载博客插件模块
- Img to rss最好的wordpress常用插件下载博客插件模块
- WPMozo为Elementor最好的WordPress常用插件下载博客插件模块添加精简版