当前位置:网站首页>2022-07-18 jenkins流水线使用及创建自己的流水线
2022-07-18 jenkins流水线使用及创建自己的流水线
2022-07-22 01:33:00 【帝尊悟世】
目录
二. 将复制后的流水线, 修改为自己的github仓库地址及分支, 并代码中的 jenkinsfile位置
填写自己的相对项目根目录的jenkinsfile文件的位置:
三. 编写自己的jenkinsfile文件, 在内部填写自己的流水线步骤
以 stonedb-dev: https://github.com/adofsauron/stonedb-dev 仓库为例:
摘要:
说明内部ci的jenkinsfile如何使用
jenkins访问方式:
访问方式:
web地址: http://192.168.30.238:8080/
用户名: admin
密码: 12345
注意事项:
- 为了便于访问当前只保留了管理员账户, 任何人可以做任何修改。但是务必不要操作他人的流水线
- 当前jenkins的master节点部署在192.168.20.238的虚拟机上, 所以直接以ip访问, 随后将会部署在更为稳定的机器上
添加自己的jenkins任务
一. 直接复制已有的任务, 对其作修改
二. 将复制后的流水线, 修改为自己的github仓库地址及分支, 并代码中的 jenkinsfile位置
修改为自己的仓库及分支:
填写自己的相对项目根目录的jenkinsfile文件的位置:
三. 编写自己的jenkinsfile文件, 在内部填写自己的流水线步骤
以 stonedb-dev: https://github.com/adofsauron/stonedb-dev 仓库为例:
代码分支:
https://gitee.com/adofsuaron/stonedb-dev/tree/stonedb-5.7/
其中一个jenkinsfilie示例:
.jenkins/jenkinsfile-stonedb5.7-centos7.9 · adofsauron/stonedb-dev - Gitee.com
jenkinsfile文件内容说明:
jenkinsfile文件结构:
jenkinsfile文件编写要点:
- agent的标签必须匹配真实的agent节点的标签, 匹配到哪个, 就在哪个agent的机器上执行
- 每个steps在jenkins是一个独立的步骤, 建议按照自己的逻辑分割
- steps内部直接填写shell脚本, 执行shell的路径, 是相对于将自己代码仓库的根路径
- 编写完后的jenkinsfile文件位置, 需要在jenkins任务上正确填写
边栏推荐
- 2022熔化焊接与热切割操作证考试题库模拟考试平台操作
- Hcia-r & s self use notes (14) rip protocol
- C#接口基础知识重构
- [must see for developers] [push kit] collection of typical problems of push service 3
- winodos下配置laradock
- url链接中特殊字符转义方法
- 1382. 将二叉搜索树变平衡 ●●
- 【AGC】增长服务2-应用内消息示例
- 【MySQL系列】“一劳永逸“ 解决MySQL中 “插入中文数据“出错的问题
- Hcia-r & s self use notes (15) OSPF foundation, OSPF core workflow, OSPF packet type, OSPF neighbor establishment conditions and process
猜你喜欢
【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
【MySQL系列】MySQL表的增删改查(基础)
【攻防世界WEB】难度二星6分入门题(上):webshell、command_execution、xff_referer、php_rce、Web_php_include、NewsCenter
召回向排序靠齐:多目标排序蒸馏召回
OS09- AutoSAR OS事件机制和实例解析
[HMS core] [FAQ] [account kit] typical problem set 2
[harmony OS] [ark UI] [demo] loading animation
2022R1快开门式压力容器操作考题及模拟考试
Configuring laradock under winodos
OS8-基于资源的优先级反转和优先级天花板协议
随机推荐
[must see for developers] [push kit] collection of typical problems of push service 1
687. 最长同值路径 ●●
Functions and configuration of dcm09- readdatabyidentifier ($22) [based on DaVinci configurator classic]
STM32 RT thread porting lvgl
网络层协议 -------- IP
【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
【深度学习】YOLO转VOC VOC转YOLO
How to do a good job in analyzing credit derivatives and credit card data scenarios? This time series feature method needs to be learned | what financial and credit analysts must learn
What software is IDM downloader? The latest version number of v6.41 win download tool
Mysql語句的RegExp的用法與案例
初阶数据结构 —— 顺序表和链表(带头双向循环链表)的优缺点 + CPU缓存的知识。
1382. 将二叉搜索树变平衡 ●●
感知机+激活函数+多层感知机的实现
Deep learning neural network cyclic neural network (I): RNN (recurrent neural network; 1990)
In order not to be "dumped" during the journey to the cloud, the enterprise vitality of cloud service providers is the key
2022r1 fast opening pressure vessel operation test and simulation test
UDS02-根据标识符读取数据服务【ServiceID = 0x22】
Y73. Chapter IV Prometheus big factory monitoring system and actual combat -- blackbox exporter installation and grafana installation (IV)
【开发者必看】【push kit】推送服务典型问题合集3
Requirement: how to import the MD file containing the public drawing bed pictures into the language bird in the form of graphics and text- 2022.7.17 (resolved)