当前位置:网站首页>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 .
边栏推荐
- debezium
- C1. k-LCM (easy version)-Codeforces Round #708 (Div. 2)
- C. Planar Reflections-CodeCraft-21 and Codeforces Round #711 (Div. 2)
- mysql版本升级+数据迁移
- QT Chinese and English use different fonts respectively
- 发送邮件工具类
- final和static
- Problems encountered in Doris operation and maintenance
- 为什么Integer的比较最好使用equals
- 二进制、16进制、大端小端
猜你喜欢
随机推荐
YUV444、YUV422、YUV420、YUV420P、YUV420SP、YV12、YU12、NV12、NV21
line-height小用
Leetcode-1528- rearrange string - hash table - string
final和static
php中使用google protobuf协议环境配置
mysql版本升级+数据迁移
InputStream流已经关闭了,但是依旧无法delete文件或者文件夹,提示被JVM占用等
Doris 运维中遇到的问题
数据同步
DPVS-FullNAT模式部署篇
iomanip头文件在实战中的作用
mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动
51 single chip microcomputer, some registers, some knowledge points
SSL/TLS、对称加密和非对称加密和TLSv1.3
Extraction system apk
Jenkins 发布PHP项目代码
CXF
对伪类的理解
Qlabel text scrolling horizontally
产品经理如何把控产品开发的进度