联系我们
简单又实用的WordPress网站制作教学
当前位置:网站首页 > 程序开发学习 > 正文

DevOps持续集成与交付

作者:小教学发布时间:2023-12-07分类:程序开发学习浏览:109


导读:概述Jenkins是一个支持容器化的部门,使用Java运行环境的开源软件,使用Jenkins平台可以定制化不同的流程和任务,以自动化的机制支持DevOps领域中的CI和CD,在软件...

概述

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容器调用

准备服务器运行环境

DevOps持续集成与交付

In this paper,the author introduces the principle and application of the mechanism of mechanical mechanism.

DevOps持续集成与交付

In this paper,we study the relationship between the factors of the

DevOps持续集成与交付

如所示,在C服务器上运行maven,Jenkins

本地代码工程

DevOps持续集成与交付

DevOps持续集成与交付

The results showed that the project code engineering is submitted to the GitLab code库in the local development environment to B server.

DevOps持续集成与交付

DevOps持续集成与交付

in ord to achieve that above mentioned design,

Jenkins运行环境配置

DevOps持续集成与交付

in ord to achieve that above mentioned design,

DevOps持续集成与交付

如所示,在GitLab用户设置界面配置git的ssh-key成功

DevOps持续集成与交付

The results showed that the accessory address of GitLab was configured on B server in C server.

DevOps持续集成与交付

如上所示,在C服务器上拉取B服务器GitLab上的测试2023项目代码工程成功

Jenkins构建项目配置

DevOps持续集成与交付

如所示,在Jenkins桌面上安装Blue Ocean插件成功

DevOps持续集成与交付

如所示,在Jenkins台面上新建一条测试2023的流水线项目

DevOps持续集成与交付

如上所示,在Jenkins界面上,配置项目test2023的本地GitLab类库对应的代码工程目录

DevOps持续集成与交付

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

DevOps持续集成与交付

The results showed that the results show

/etc/maven/settings.xml

DevOps持续集成与交付

in that example shown in fig. 1,

DevOps持续集成与交付

如上所示,在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

DevOps持续集成与交付

In this paper,we discuss the relationship between the mechanism and the relationship between the mechanism.

DevOps持续集成与交付

如所示,在项目工程代码上编码部门发布的脚本deploy.sh

DevOps持续集成与交付

如所示,在Jenkins文件上添加部门部署发布的步骤deploy.sh,设置Jenkins使用root用户启动

DevOps持续集成与交付

所示,在Jenkins正面Blue Ocean显示项目建设成功,发布项目成功

DevOps持续集成与交付

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.




标签:DevOps持续集成与交付


程序开发学习排行
最近发表
网站分类
标签列表