Code synchronization method and device, computer readable medium and terminal
A code and object code technology, applied in the direction of program control device, software deployment, software maintenance/management, etc., can solve the real-time problems of manual push, achieve real-time mirror code synchronization, and solve the effect of poor real-time performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] figure 1 It is a schematic flowchart of a code synchronization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where two or more servers need to share the code in the unified code library. This method can be implemented by a code synchronization device It can be implemented by means of software and / or hardware.
[0040] like figure 1 As shown, the method of this embodiment specifically includes:
[0041] S110. When it is detected that the code in the target code warehouse is changed, through the remote trigger entry in the pre-established mirror synchronization task, receive the remote trigger message sent based on the event processing interface web hook.
[0042] Specifically, detecting a code change in the target code repository may include: detecting a target trigger event of the target code repository, wherein the target trigger event includes a commit event, a push event, a labeling event, and / or a merge re...
Embodiment 2
[0051] Figure 2A It is a schematic flow diagram of a code synchronization method provided by Embodiment 2 of the present invention. The technical solution of this embodiment is based on the technology of the above embodiment, and optionally further includes: building a mirror synchronization task based on the software continuous integration tool Jenkins; The remote trigger entry in the mirror synchronization task is configured, and a mirror synchronization script is added to the mirror synchronization task.
[0052] like Figure 2A As shown, the method of this embodiment specifically includes:
[0053] S210, build a mirror synchronization task based on the software continuous integration tool Jenkins.
[0054] First, create a Jenkins build mirror synchronization task Job_Project_A, which will be mainly used to synchronize the target code warehouse Project_A code stored in the target git warehouse server to the local git warehouse server. In this operation, Jenkins is used ...
Embodiment 3
[0070] image 3 It is a schematic structural diagram of a data processing system provided by an embodiment of the present invention. like image 3 As shown, this embodiment is applicable to the situation where two or more servers need to share the code in the unified code library, and the device can be used to execute the code synchronization method. Specifically, the code synchronization device of this embodiment includes a trigger module 310 and a synchronization module 320 .
[0071] Among them, the trigger module 310 is used to receive the remote trigger message sent based on the event processing interface web hook through the remote trigger entry in the pre-established mirror synchronization task when the code in the target code warehouse is monitored to change; the synchronization module 320. When a remote trigger message is received, perform code synchronization on the target code repository based on the mirror synchronization script in the mirror synchronization task...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com