当前位置:网站首页>Jenkins releases PHP project code
Jenkins releases PHP project code
2022-06-25 23:47:00 【ndrandy】
be based on Jenkins Release php Code , In fact, the core is three plug-ins
- git/svn plug-in unit
- Push Over SSH plug-in unit
- Role-based Authorization Strategy ( This plug-in is used to manage multiple projects , User permission assignment , Different roles control different projects )
Information on the Internet , It is basically a legend tutorial on how to configure , But this article does not cover these , There are a lot of configuration information , The purpose of this article is to let you know the whole release process .
install jenkins The server of this article is called : Release machine
The server that runs the project code is called : Project machines
jenkins Is based on “ Release machine ” And “ Project machines ” Between the ssh Avoid secret landing , And then through scp perhaps rsync Synchronize to each project machine , If there is shell The script will be executed later shell.
Brief description of configuration process
- stay Push Over SSH Plug in ( System management -> The system configuration -> Publish over SSH), Need configuration “ Release machine ” Private key information , as well as N Configuration information of project machines ( machine name、ip、ssh Password free user name , Project code path, etc )
- Configure a new project ,jenkins called Item, The points needing attention in the configuration are :
# structure (Build) about php In terms of projects , You can execute directly here Code release +shell, This situation is generally used for The mode of directly releasing code
# For those that need code rollback php project ,“ structure ” This step allows you to perform a code backup , Or will rollback Version of the code covers jenkins Of workspace in ,linux To think in silence :/var/lib/jenkins/workspace, And then in “ Post-build operation ” Is executing Publishing +shell Execution, etc . This situation can put “ structure ” Understood as a pre-publish namely : Release preparation
# Details of the release process , For example, to filter the transferred files , Directly in ssh servers( Project machine cluster ) Medium Transfer Set To configure
- Assign roles to each project , In this way, different project team members manage their own projects , The key configuration is :Manage and Assign Roles->Manage Roles in Configure each item role Overall situation Global roles, General “ Mission ” tag Of read jurisdiction , Then the core is Item roles Give your own role Specify the project name by regular .
边栏推荐
- Mutual conversion between QT utf8 and Unicode encoding, and the Unicode encoding output format is &xxxxx
- 数据同步
- IDEA中如何生成get/set方法
- CXF
- UE4 learning records create a role and control its movement
- Use Baidu map API to set an overlay (infowindow) in the map to customize the window content
- QT Chinese and English use different fonts respectively
- Customize the qcombobox drop-down box, right align the display, and slide the drop-down list
- 6.常用指令(上)v-cloak,v-once,v-pre
- C. Yet Another Card Deck-Educational Codeforces Round 107 (Rated for Div. 2)
猜你喜欢
随机推荐
4个要点,助力产品管好项目
Analyse des cinq causes profondes de l'échec du développement de produits
Uniapp - call payment function: Alipay
php性能优化
登录拦截器
YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
Apache Doris1.0版本集群搭建、负载均衡与参数调优
YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
期末复习【机器学习】
(serial port Lora module) centrida rf-al42uh private protocol test at instruction test communication process
proxy
Extraction system apk
mysql版本升级+数据迁移
聊聊swoole或者php cli 进程如何热重启
Gradle的环境安装与配置
Download the latest V80 version of Google Chrome
发送邮件工具类
Hibernate entity class curd, transaction operation summary
Uniapp -- the use of document collation and push of unipush
格式化编号,不够位数的补0,例如1:0001,25:0025









