当前位置:网站首页>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 .
边栏推荐
- The InputStream stream has been closed, but the file or folder cannot be deleted, indicating that it is occupied by the JVM
- Record the ideas and precautions for QT to output a small number of pictures to mp4
- Spark日志分析
- 谷歌浏览器(Chrome)最新v80版本下载
- 后序线索二叉树
- 权限设计=功能权限+数据权限
- unsigned与signed之大白话
- Blob
- DPVS-FullNAT模式部署篇
- Database - mongodb
猜你喜欢
随机推荐
mysql版本升级+数据迁移
A. Balance the Bits--Codeforces Round #712 (Div. 1)
MySQL InnoDB锁知识点
Px4 multi computer simulation (gazebo)
CSDN add on page Jump and off page specified paragraph jump
史上最简单的录屏转gif小工具LICEcap,要求不高可以试试
Leetcode (605) -- flower planting
unsigned与signed之大白话
录屏转gif的好用小工具ScreenToGif,免费又好用!
The InputStream stream has been closed, but the file or folder cannot be deleted, indicating that it is occupied by the JVM
28 rounds of interviews with 10 companies in two and a half years (including byte, pinduoduo, meituan, Didi...)
Qlabel text scrolling horizontally
STL教程5-STL基本概念及String和vector使用
产品经理如何把控产品开发的进度
InputStream流已经关闭了,但是依旧无法delete文件或者文件夹,提示被JVM占用等
Line height for small use
二进制、16进制、大端小端
Understanding of pseudo classes
期末复习【机器学习】
DPVS-FullNAT模式部署篇









