Jenkins实现基础CD操作

操作截图

在Jenkins里面设置通过标签进行构建

在Jenkins中进入项目,配置以下


将execute shell换到invoke top-level maven targets之前

在gitlab中配置标签


代码迭代新的版本

项目代码迭代

修改docker-compose.yml

提交新版本的代码

在Jenkins中追加新的tag

截止为止,代码已经有两个版本了。

Jenkins根据标签参数进行构建

小结

相关推荐
Azure DevOps5 小时前
Azure DevOps Server:允许讨论但不允许修改工作项
运维·microsoft·azure·devops
摸鱼的老谭16 小时前
DevOps介绍
运维·devops
Azure DevOps16 小时前
Azure DevOps Server 2022.2 补丁(Patch 7)
运维·microsoft·azure·devops
一念一花一世界1 天前
DevOps实战(13) - 使用Arbess下载Aliyun OSS制品进行主机部署
阿里云·ci/cd·devops·arbess
一念一花一世界1 天前
DevOps实战(10) - 使用Arbess+GitLab+Hadess实现Java项目构建并上传制品
ci/cd·gitlab·devops·arbess
一念一花一世界2 天前
DevOps实战(11) - 使用Arbess+Hadess实现下载制品进行主机部署
ci/cd·jar·devops·arbess·hadess
y***86692 天前
DevOps在云中的自动化部署
运维·自动化·devops
运维-大白同学2 天前
2025最全面开源devops运维平台功能介绍
linux·运维·kubernetes·开源·运维开发·devops
1***y1782 天前
DevOps在云中的Rancher
运维·rancher·devops
J***Q2923 天前
DevOps金融服务安全要求
运维·安全·devops