当前位置:网站首页>CD流程
CD流程
2022-06-11 23:31:00 【江小南】
实操案例(CD持续交付/部署)
说明:本次CD的操作实例基于前面文章中的CI的配置进行。
流水线上进行配置



名称可以自定义,在后面的配置中我们会将此名称做为一个参数。描述随意写即可。参数类型选择标签[tag]。默认值表示从仓库的哪个分支拉取代码。

添加构建步骤,选择
执行shell。

将新添加的执行shell步骤拖动到maven步骤之前(会按照先后顺序执行的)。写入命令
git checkout $test_tag,表示会从git仓库中拉取和构建执行的版本进行构建。注意这里的$test_tag和我们上面配置的名称保持一致。
配置完点击应用保存即可。
在GitLab上添加Tags标签


给提交的代码打上标签。比如我这里提交了两次代码,分别打标签v1.0.0和v2.0.0。
Jenkins中进行拉取和构建

当我们点击构建的时候在gitlab中的Tags已经显示出来了,可以选择相应的版本进行构建。这里我选择
v2.0.0。

查看日志也可以清晰看出
git checkout v2.0.0,此步骤在maven编译之前执行。
测试

访问成功。
边栏推荐
- Here we go! Dragon lizard community enters PKU classroom
- 直播预告|FeatureStore Meetup V3 重磅来袭!
- [day6-7 intensive literature reading] a unifying Bayesian framework accounting for spatiotemporal interactions with a
- 队列(C语言)
- 2022 operation of simulation examination platform for safety officer C certificate
- Implementation scheme of iteration and combination pattern for general tree structure
- 【Day15 文献泛读】Numerical magnitude affects temporal memories but not time encoding
- 抗原產品進入家庭,中國醫療器械企業迎來新藍海
- HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
- [Day2 intensive literature reading] time in the mind: using space to think about time
猜你喜欢

移印工艺流程及应用注意事项

Leetcode must review 20 lintcode (5466421166978227)

I2C read / write process

Why can't Google search page infinite?

Implementation scheme of iteration and combination pattern for general tree structure

【Day15 文献泛读】Numerical magnitude affects temporal memories but not time encoding

Introduction aux bases de SOLR

Lake shore vnf series low temperature thermostat system - sample in flowing steam

One to one correspondence of multiple schematic diagrams and PCB diagrams under Altium designer project

唤醒手腕 - 神经网络与深度学习(Tensorflow应用)更新中
随机推荐
Implementation scheme of iteration and combination pattern for general tree structure
Google搜索为什么不能无限分页?
Lake Shore VNF 系列低温恒温器系统——流动蒸汽中的样品
HMS core shows the latest open capabilities in mwc2022, helping developers build high-quality applications
Wireless communication comparison of si4463, si4438 and Si4432 schemes of wireless data transmission module
唤醒手腕 - 神经网络与深度学习(Tensorflow应用)更新中
El select drop-down box style combined with El table (pseudo) combined with drop-down selection
05 classification learning notes lihongyi's in-depth study 2021
Wake up wrist - neural network and deep learning (tensorflow application) updating
VS code 编写汇编代码【微机原理】
Software installation and use, etc
SDNU_ ACM_ ICPC_ 2022_ Weekly_ Practice_ 1st (supplementary question)
Introduction to Solr Basics
[day11-12 intensive literature reading] on languages in memory: an internal clock account of space-time interaction
我的创作纪念日
[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect
2022高压电工考试题模拟考试题库及在线模拟考试
2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
Queue (C language)
【Day6-7 文献精读】A unifying Bayesian framework accounting for spatiotemporal interferences with a ...