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

Active Publication Date: 2018-06-29
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a code synchronization method, device, computer-readable medium, and terminal to solve technical problems such as manual push or poor real-ti

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code synchronization method and device, computer readable medium and terminal
  • Code synchronization method and device, computer readable medium and terminal
  • Code synchronization method and device, computer readable medium and terminal

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0038] Embodiment one

[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...

Example Embodiment

[0050] Embodiment two

[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 op...

Example Embodiment

[0069] Embodiment Three

[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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a code synchronization method and device, a computer readable medium and a terminal. The code synchronization method includes: when change of a code in a target code warehouseis detected, receiving a remote trigger message sent by web hook based on an event processing interface through a remote trigger entry in a pre-established mirror synchronization task; when receivingthe remote trigger message, performing synchronization on the code in the target code warehouse on the basis of a mirror synchronization script in the mirror synchronization task. When change of the code in the target code warehouse is detected, the remote trigger message is received through the remote trigger entry to mirror the synchronization task to realize code synchronization, technical problems that an existing code synchronization method needs human push or is poor in timeliness and the like can be solved, and mirror code synchronization can be performed efficiently and timely withouthuman intervention.

Description

technical field [0001] Embodiments of the present invention relate to computer application technology, and in particular to a code synchronization method, device, computer-readable medium, and terminal. Background technique [0002] In the daily development process, there are often two or more development teams A and B in the same company who develop the same project at the same time, and need to access each other's code warehouses. Because they are not in the same network environment, accessing each other's code repositories is relatively slow, especially for large code repositories, which is very time-consuming. Therefore, the usual practice is that team A mirrors the code warehouse maintained by team B on its own server, and clones the code warehouse to the internal server of team A. The developers of team A only need to visit the internal server to quickly obtain the code of the code warehouse. This improves the efficiency for developers to obtain the code, but also cr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44G06F9/445
CPCG06F8/65G06F8/70
Inventor 黄露洋张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products