CN114172904B - Jenkins information processing method and device, electronic equipment and storage medium - Google Patents

Jenkins information processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114172904B
CN114172904B CN202111462577.0A CN202111462577A CN114172904B CN 114172904 B CN114172904 B CN 114172904B CN 202111462577 A CN202111462577 A CN 202111462577A CN 114172904 B CN114172904 B CN 114172904B
Authority
CN
China
Prior art keywords
target
information
construction
jenkins
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111462577.0A
Other languages
Chinese (zh)
Other versions
CN114172904A (en
Inventor
张文博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhongyuan Network Co ltd
Original Assignee
Shanghai Zhongyuan Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongyuan Network Co ltd filed Critical Shanghai Zhongyuan Network Co ltd
Priority to CN202111462577.0A priority Critical patent/CN114172904B/en
Publication of CN114172904A publication Critical patent/CN114172904A/en
Application granted granted Critical
Publication of CN114172904B publication Critical patent/CN114172904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a Jenkins information processing method, a Jenkins information processing device, electronic equipment and a storage medium, wherein the Jenkins information processing method comprises the following steps: receiving construction information, wherein the construction information carries a target pipeline identifier; inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identifier according to the pre-acquired pipeline information, wherein the target Jenkins server and the target construction node are used for constructing the target pipeline identifier; transmitting connection information of a target Jenkins server to a target construction node so as to enable the target construction node to establish connection aiming at a target pipeline with the target Jenkins server; and sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information. Therefore, when the target Jenkins server receives the construction information, the target construction node and the target Jenkins server are in a connection state, and the construction information can be processed, so that the construction node can automatically switch the connected Jenkins server, and the use is convenient.

Description

Jenkins information processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a Jenkins information processing method, device, electronic apparatus, and storage medium.
Background
Jenkins is the most commonly used continuous integration tool, and aims to provide an open and easy-to-use software platform so that software projects can be continuously integrated.
Jenkins may use a master/slave architecture to manage distributed build, where the master node is typically a Jenkins server for processing build information, distributing build information to slave nodes for actual execution, monitoring slave nodes, and recording and publishing build products; the slave node is a construction node and is used for processing construction information allocated by the master node.
In the prior art, a Jenkins system may include a plurality of pipelines, each pipeline corresponds to a different Jenkins server and a construction node, when the construction is triggered, jenkins will search the construction node corresponding to the pipeline for construction according to the label of the construction node configured by the pipeline, if the construction node is temporarily unavailable, the pipeline will wait until the connection of the available construction node is started.
However, one building node can only be bound to one Jenkins server at the same time, which means that when a certain building node corresponds to a plurality of pipelines at the same time, a user is required to manually adjust the connection states of the Jenkins servers respectively corresponding to the building node and the plurality of pipelines, and the use is inconvenient.
Disclosure of Invention
In order to solve the technical problems, the application discloses a Jenkins information processing method, a Jenkins information processing device, electronic equipment and a storage medium.
According to a first aspect of an embodiment of the present invention, there is provided a Jenkins information processing method, applied to a scheduling node in a Jenkins system, where the Jenkins system includes at least one Jenkins server, a plurality of construction nodes, and the scheduling node, the method includes:
receiving construction information, wherein the construction information carries a target pipeline identifier;
inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identification according to pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline;
transmitting the connection information of the target Jenkins server to the target construction node so as to enable the target construction node to establish connection aiming at a target pipeline with the target Jenkins server;
and sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information.
Optionally, the receiving the build information includes:
the build information is received in response to a GitLab event or a user-triggered event.
Optionally, the sending the connection information of the target Jenkins server to the any target building node includes:
inquiring IP information of any target construction node and containment protocol key information from the pre-acquired construction node information;
establishing a containment protocol connection with any target construction node according to the IP information and the containment protocol key information of the any target construction node;
and transmitting the connection information of the target Jenkins server to any target construction node through the secure shell protocol connection.
Optionally, the connection information of the target Jenkins server includes token information of the target Jenkins server, and after any target building node and the target Jenkins server pass through the token information authentication, connection for a target pipeline is established.
Optionally, the construction node is a node device in the Jenkins system or a mirror image container created by the node device.
According to a second aspect of an embodiment of the present invention, there is provided a Jenkins information processing apparatus applied to a scheduling node in a Jenkins system, where the Jenkins system includes at least one Jenkins server, a plurality of construction nodes, and the scheduling node, the apparatus includes:
the receiving module is used for receiving construction information, wherein the construction information carries a target pipeline identifier;
the query module is used for querying a target Jenkins server and a target construction node corresponding to the target pipeline identification according to the pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline;
the connection module is used for sending the connection information of the target Jenkins server to the target construction node so as to enable the target construction node to establish connection for a target pipeline with the target Jenkins server;
and the sending module is used for sending the construction information to the target Jenkins server so that the target Jenkins server can send the construction information to the target construction node and the target construction node can process the construction information.
Optionally, the receiving module is configured to:
the build information is received in response to a GitLab event or a user-triggered event.
Optionally, the connection module is configured to:
inquiring IP information of the target construction node and safety shell protocol key information from the pre-acquired construction node information;
establishing a containment protocol connection with the target construction node according to the IP information of the target construction node and the containment protocol key information;
and transmitting the connection information of the target Jenkins server to the target construction node through the secure shell protocol connection.
Optionally, the connection information of the target Jenkins server includes token information of the target Jenkins server, and after the target building node and the target Jenkins server pass through the token information authentication, connection for a target pipeline is established.
Optionally, the construction node is a node device in the Jenkins system or a mirror image container created by the node device.
According to a third aspect of an embodiment of the present invention, there is provided a Jenkins information processing electronic device including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the Jenkins information processing method of any one of the above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium, which when executed by a processor of an image-based instrument angle detection electronic device, causes a Jenkins information processing electronic device to perform the Jenkins information processing method of any one of the above.
According to a fifth aspect of embodiments of the present invention, there is provided a computer program product comprising a computer program/instruction which, when executed by a processor, implements the Jenkins information processing method of any one of the above.
Compared with the prior art, the application has the following advantages:
in the application, receiving construction information, wherein the construction information carries a target pipeline identifier; inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identification according to the pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline; transmitting connection information of a target Jenkins server to a target construction node so as to enable the target construction node to establish connection aiming at a target pipeline with the target Jenkins server; and sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information.
Therefore, after the scheduling node receives the construction information, the connection between the target construction node and the target Jenkins server for the target pipeline is established according to the pre-acquired pipeline information, when the target Jenkins server receives the construction information, the target construction node and the target Jenkins server are already in a connection state, and the construction information can be processed, so that the construction node can automatically switch the connected Jenkins server, the device is multipurpose, the switching is not perceived, and the use is convenient.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a step flow diagram of a Jenkins information processing method of the present application;
fig. 2 is a system architecture diagram of a Jenkins information processing method of the present application;
fig. 3 is a block diagram of a Jenkins information processing apparatus of the present application;
fig. 4 is a block diagram of an electronic device of the present application.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The Jenkins information processing method provided by the embodiment of the invention will be described in detail below through specific embodiments.
Referring to fig. 1, a step flow chart of a Jenkins information processing method of the present application is shown, and the method is applied to a scheduling node in a Jenkins system, where the Jenkins system includes at least one Jenkins server, a plurality of construction nodes and the scheduling node, and the method specifically may include the following steps:
s101: and receiving construction information, wherein the construction information carries the target pipeline identification.
In this step, the construction information is information for constructing Jenkins project, and the construction information may use Python language as a development language, pyCharm as a development tool, or may use other program development languages, which is not specifically limited.
In one implementation, the source of the build information may be a GitLab event or a user-triggered event, that is, the scheduling node obtains the build information in response to the GitLab event or the user-triggered event, thereby implementing automatic reception of the build information. Wherein, gitLab is an open source project for a warehouse management system, uses Git as a code management tool, and builds a web service on the basis of Git.
Specifically, the scheduling node may detect the GitLab event or the user trigger event through an API (Application Program Interface ) interface, for example, by configuring the API interface based on a callback address of the GitLab item, or by manually calling the API interface by the user.
In the application, the construction node may be a node device in the Jenkins system, or may also be a mirror image container created by the node device. That is, a mirror image container corresponding to the node device can be created by using a dock mirror image technology, the mirror image container is used as a construction node, and a plurality of construction nodes can be started on the same node device more conveniently and quickly.
S102: and inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identification according to the pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline.
In the application, the Jenkins server in the Jenkins system can be one or a plurality of Jenkins servers, so that the usability of Jenkins can be improved through multi-node deployment. A plurality of pipelines are preconfigured in the Jenkins system, and each pipeline corresponds to one Jenkins server and a plurality of construction nodes.
The pipeline information may be pre-stored in MySQL database, and is represented as a pipeline table, where relevant information of the pipeline is stored, including a pipeline identifier, a Jenkins server corresponding to the pipeline, and a construction node corresponding to the pipeline.
In addition, the database table stored in the MySQL database may further include a jenkins_servers table and a scales table, where the jenkins_servers table stores information related to the Jenkins server, including information such as a user of the Jenkins server ID, HOST, admin and token (token information) thereof; the slave table stores information related to the construction node, including information such as an ID of the construction node, an ID of a Jenkins server corresponding to the construction node, a token required for the construction node to connect to the corresponding Jenkins server, an IP of a device corresponding to the construction node, ssh_keys (Secure Shell keys, secure shell protocol key) of a device corresponding to the slave, and the like.
That is, in this step, after receiving the construction information, the scheduling node reads the related pipeline label according to the construction information, and searches the related information according to the pipeline label, to find out the construction node bound by the Jenkins server and the pipeline to which the pipeline belongs.
S103: and sending the connection information of the target Jenkins server to the target construction node so that the target construction node and the target Jenkins server establish connection for the target pipeline.
In one implementation, the step of sending the connection information of the target Jenkins server to the target building node may include:
firstly, inquiring IP information and containment protocol key information of a target construction node from pre-acquired construction node information; then, establishing a containment protocol connection with the target construction node according to the IP information of the target construction node and the containment protocol key information; further, the connection information of the target Jenkins server is sent to the target building node through the secure shell protocol connection.
Specifically, it is necessary to configure the secure shell protocol key information on the construction node in advance, create the labels of the construction node on all Jenkins ready to connect in advance, and then execute the connection command on the construction node remotely through the secure shell protocol command by using the secure shell protocol key information corresponding to the construction node stored in the storage module.
In the application, the connection information of the target Jenkins server comprises token information of the target Jenkins server, and after the target construction node and the target Jenkins server are authenticated by the token information, connection for a target pipeline is established.
The method comprises the steps that building information is sent to a Jenkins server, and a trigger building API corresponding to the Jenkins server can be called through a method provided by a Jenkins API library. That is, in this step, the scheduling node executes the connection command on the construction node through the secure shell protocol connection, and connects the physical machine where the construction node is located to the Jenkins server to which the pipeline is attached.
S104: and sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information.
In the step, the scheduling node forwards the received construction information to a target Jenkins server to which the target pipeline belongs, and the target Jenkins server sends the construction information to a target construction node for processing after receiving the construction command.
In one implementation, the scheduling node may also detect the connection state of the construction node, and if the construction node is disconnected, may automatically reconnect or alarm to improve the stability of the Jenkins system.
Fig. 2 is a schematic diagram of a scheme of a Jenkins information processing method according to the present application. The scheduling node comprises a scheduling module, an information receiving module, a storage module and an information sending module, wherein the storage module stores pipeline information by using a MySQL database, the information receiving module responds to a GitLab event or a user triggering event and receives construction information, the scheduling module queries a target Jenkins server and a target construction node corresponding to a target pipeline identifier according to the pipeline information stored in the storage module, and the information sending module connects the construction node to the Jenkins server and sends the construction information to the Jenkins server.
In view of the above, in the scheme provided by the application, after receiving the construction information, the scheduling node establishes connection between the target construction node and the target Jenkins server for the target pipeline according to the pre-acquired pipeline information, and when the target Jenkins server receives the construction information, the target construction node and the target Jenkins server are already in a connection state, so that the construction information can be processed, and the construction node can automatically switch the connected Jenkins server.
In addition, the construction node does not need to be connected with the Jenkins server all the time, and other works can be performed by using the construction node when construction is not needed. The scheme can be directly applied to a continuous construction platform, and a user can associate the continuous construction platform to all Jenkins servers by only providing one construction machine, so that the use of the continuous construction platform is convenient for the user, and the waste of resources can be avoided.
It should be noted that, for the sake of simplicity of description, the method embodiments are all described as a series of combinations of actions, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may take place in other order or simultaneously in accordance with the present application. Further, those skilled in the art will appreciate that the embodiments described in the specification are all alternative embodiments, and that the acts referred to are not necessarily required for the present application.
Referring to fig. 3, a block diagram of a Jenkins information processing apparatus of the present application is shown, where the Jenkins information processing apparatus is applied to a scheduling node in a Jenkins system, and the Jenkins system includes at least one Jenkins server, a plurality of construction nodes, and the scheduling node, and may specifically include the following modules:
a receiving module 201, configured to receive construction information, where the construction information carries a target pipeline identifier;
the query module 202 is configured to query a target Jenkins server and a target construction node corresponding to the target pipeline identifier according to pre-acquired pipeline information, where the pipeline information includes a pipeline identifier, a Jenkins server and a construction node corresponding to each pipeline;
a connection module 203, configured to send connection information of the target Jenkins server to the target building node, so that the target building node and the target Jenkins server establish a connection for a target pipeline;
and the sending module 204 is configured to send the build information to the target Jenkins server, so that the target Jenkins server sends the build information to the target build node, and the target build node processes the build information.
In one implementation, the receiving module 201 is configured to:
the build information is received in response to a GitLab event or a user-triggered event.
In one implementation, the connection module 203 is configured to:
inquiring IP information of the target construction node and safety shell protocol key information from the pre-acquired construction node information;
establishing a containment protocol connection with the target construction node according to the IP information of the target construction node and the containment protocol key information;
and transmitting the connection information of the target Jenkins server to the target construction node through the secure shell protocol connection.
In one implementation manner, the connection information of the target Jenkins server includes token information of the target Jenkins server, and after the target building node and the target Jenkins server pass through the token information authentication, connection for a target pipeline is established.
In one implementation, the build node is a node device in the Jenkins system, or a mirrored container created by the node device.
From the above, in the scheme provided by the application, after receiving the construction information, the scheduling node establishes connection between the target construction node and the target Jenkins server for the target pipeline according to the pre-acquired pipeline information, and when the target Jenkins server receives the construction information, the target construction node and the target Jenkins server are already in a connection state, so that the construction information can be processed, and the construction node can automatically switch the connected Jenkins server.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the present invention further provides an electronic device, as shown in fig. 4, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 perform communication with each other through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to execute the program stored in the memory 703, and implement the following steps:
receiving construction information, wherein the construction information carries a target pipeline identifier;
inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identification according to pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline;
transmitting the connection information of the target Jenkins server to the target construction node so as to enable the target construction node to establish connection aiming at a target pipeline with the target Jenkins server;
and sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
From the above, in the scheme provided by the application, after receiving the construction information, the scheduling node establishes connection between the target construction node and the target Jenkins server for the target pipeline according to the pre-acquired pipeline information, and when the target Jenkins server receives the construction information, the target construction node and the target Jenkins server are already in a connection state, so that the construction information can be processed, and the construction node can automatically switch the connected Jenkins server.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which instructions are stored, which when executed on a computer, cause the computer to perform the Jenkins information processing method according to any one of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the Jenkins information processing method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (7)

1. The method is characterized by being applied to a scheduling node in a Jenkins system, wherein the Jenkins system comprises at least one Jenkins server, a plurality of construction nodes and the scheduling node, and the method comprises the following steps:
receiving construction information, wherein the construction information carries a target pipeline identifier;
inquiring a target Jenkins server and a target construction node corresponding to the target pipeline identification according to pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline;
transmitting the connection information of the target Jenkins server to the target construction node so as to enable the target construction node to establish connection aiming at a target pipeline with the target Jenkins server;
sending the construction information to the target Jenkins server, so that the target Jenkins server sends the construction information to the target construction node, and the target construction node processes the construction information;
the sending the connection information of the target Jenkins server to the target building node includes:
inquiring IP information of the target construction node and safety shell protocol key information from the pre-acquired construction node information;
establishing a containment protocol connection with the target construction node according to the IP information of the target construction node and the containment protocol key information;
transmitting the connection information of the target Jenkins server to the target construction node through the secure shell protocol connection;
the connection information of the target Jenkins server comprises token information of the target Jenkins server, and after the target construction node and the target Jenkins server pass through the token information authentication, connection for a target pipeline is established.
2. The method of claim 1, wherein the receiving build information comprises:
the build information is received in response to a GitLab event or a user-triggered event.
3. The method of claim 1, wherein the build node is a node device in the Jenkins system or a mirrored container created by the node device.
4. The Jenkins information processing device is characterized by being applied to a scheduling node in a Jenkins system, wherein the Jenkins system comprises at least one Jenkins server, a plurality of construction nodes and the scheduling node, and the device comprises:
the receiving module is used for receiving construction information, wherein the construction information carries a target pipeline identifier;
the query module is used for querying a target Jenkins server and a target construction node corresponding to the target pipeline identification according to the pre-acquired pipeline information, wherein the pipeline information comprises the pipeline identification, the Jenkins server and the construction node corresponding to each pipeline;
the connection module is used for sending the connection information of the target Jenkins server to the target construction node so as to enable the target construction node to establish connection for a target pipeline with the target Jenkins server;
the sending module is used for sending the construction information to the target Jenkins server so that the target Jenkins server can send the construction information to the target construction node and the target construction node can process the construction information;
wherein, the connection module is used for:
inquiring IP information of the target construction node and safety shell protocol key information from the pre-acquired construction node information;
establishing a containment protocol connection with the target construction node according to the IP information of the target construction node and the containment protocol key information;
transmitting the connection information of the target Jenkins server to the target construction node through the secure shell protocol connection;
the connection information of the target Jenkins server comprises token information of the target Jenkins server, and after the target construction node and the target Jenkins server pass through the token information authentication, connection for a target pipeline is established.
5. The apparatus of claim 4, wherein the build node is a node device in the Jenkins system or a mirrored container created by the node device.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the Jenkins information processing method according to any one of claims 1 to 3 when the program is executed by the processor.
7. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the Jenkins information processing method according to any one of claims 1 to 3.
CN202111462577.0A 2021-12-02 2021-12-02 Jenkins information processing method and device, electronic equipment and storage medium Active CN114172904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111462577.0A CN114172904B (en) 2021-12-02 2021-12-02 Jenkins information processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111462577.0A CN114172904B (en) 2021-12-02 2021-12-02 Jenkins information processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114172904A CN114172904A (en) 2022-03-11
CN114172904B true CN114172904B (en) 2024-02-13

Family

ID=80482588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111462577.0A Active CN114172904B (en) 2021-12-02 2021-12-02 Jenkins information processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114172904B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
WO2019226652A1 (en) * 2018-05-22 2019-11-28 Pure Storage, Inc. Auto-scaling a software application
CN110837373A (en) * 2019-10-17 2020-02-25 深圳市基石协作科技有限公司 Continuous integration and continuous delivery method, device, computer equipment and storage medium
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering
CN111857861A (en) * 2020-01-19 2020-10-30 苏州浪潮智能科技有限公司 Jenkins task management method, system, terminal and storage medium
CN112099815A (en) * 2020-09-27 2020-12-18 中国银行股份有限公司 Continuous integration environment construction method and device
CN112286580A (en) * 2020-10-31 2021-01-29 成都新潮传媒集团有限公司 Method and device for processing pipeline operation and computer equipment
CN113434180A (en) * 2021-07-13 2021-09-24 上海浦东发展银行股份有限公司 Data processing method and device for application, server and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9154413B2 (en) * 2012-06-21 2015-10-06 Breakingpoint Systems, Inc. High-speed CLD-based pipeline architecture
US20130343377A1 (en) * 2012-06-21 2013-12-26 Jonathan Stroud Hash-based packet distribution in a computer system
US9612821B2 (en) * 2015-07-02 2017-04-04 International Business Machines Corporation Predicting the success of a continuous software deployment pipeline
US10437585B2 (en) * 2015-10-23 2019-10-08 Oracle International Corporation Managing highly scalable continuous delivery pipelines
US10410152B2 (en) * 2016-09-21 2019-09-10 Cognizant Technology Solutions India Pvt. Ltd. System and method for automatically and efficiently monitoring software development life cycles
CN111857762A (en) * 2019-04-30 2020-10-30 戴尔产品有限公司 Micro-service updating system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019226652A1 (en) * 2018-05-22 2019-11-28 Pure Storage, Inc. Auto-scaling a software application
CN110472413A (en) * 2019-07-26 2019-11-19 Oppo广东移动通信有限公司 Device management method, device, storage medium and electronic equipment based on jenkins
CN110837373A (en) * 2019-10-17 2020-02-25 深圳市基石协作科技有限公司 Continuous integration and continuous delivery method, device, computer equipment and storage medium
CN111857861A (en) * 2020-01-19 2020-10-30 苏州浪潮智能科技有限公司 Jenkins task management method, system, terminal and storage medium
CN111459539A (en) * 2020-04-07 2020-07-28 中国建设银行股份有限公司 Continuous integration pipeline operation method and device based on mirror layering
CN112099815A (en) * 2020-09-27 2020-12-18 中国银行股份有限公司 Continuous integration environment construction method and device
CN112286580A (en) * 2020-10-31 2021-01-29 成都新潮传媒集团有限公司 Method and device for processing pipeline operation and computer equipment
CN113434180A (en) * 2021-07-13 2021-09-24 上海浦东发展银行股份有限公司 Data processing method and device for application, server and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Novel Architecture and Inter-process Communication Scheme to Adapt Chromium Based on Docker Container;Xiaolin Geng, Xuewen Zeng, Linlin Hu, Zhichuan Guo;《Elsevier》;全文 *
容器云平台上应用自动化部署系统的设计与实现;郑国庆;《中国优秀硕士学位全文数据库》;全文 *

Also Published As

Publication number Publication date
CN114172904A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN111399756B (en) Data storage method, data downloading method and device
KR20130135134A (en) Installing application remotely
CN113141405B (en) Service access method, middleware system, electronic device, and storage medium
CN109768980B (en) Server access method, device, mobile terminal and computer readable storage medium
EP3122077B1 (en) Resource notification method, local common service entity (cse) and resource notification system
CN111159269B (en) Data processing method, device and system
CN111355765B (en) Network request processing and sending method and device
CN114172904B (en) Jenkins information processing method and device, electronic equipment and storage medium
CN110908881B (en) Buried point data transmitting method and device, electronic equipment and computer readable storage medium
CN104426816A (en) Virtual machine communication method and device
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN110674153B (en) Data consistency detection method and device and electronic equipment
CN114338794B (en) Service message pushing method and device, electronic equipment and storage medium
CN111880949B (en) Service information processing method, system, device, server and terminal
CN113438245B (en) Information updating and message security detection method and device
WO2023044673A1 (en) Method and apparatus for deploying industrial edge application, and computer-readable storage medium
CN115757505A (en) Information query method and cabinet management node
CN109254855B (en) Registration method and device of parameter transmission protocol and electronic equipment
CN109885519B (en) Connection switching method for serial port of main control board and main control board
CN109743232B (en) Interface detection method and device
US10795848B2 (en) Dual way communication method, system, and master device thereof
JP2001333083A (en) Setting method for newly adding and deleting field device, and method for newly adding field device
CN106789862B (en) Data synchronization method and device
CN112256646B (en) Method and device for operating file system subdirectory, electronic equipment and storage medium
CN114245405B (en) Equipment network distribution method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant