CN105739966A - Continuous integration method and device - Google Patents

Continuous integration method and device Download PDF

Info

Publication number
CN105739966A
CN105739966A CN201610034803.8A CN201610034803A CN105739966A CN 105739966 A CN105739966 A CN 105739966A CN 201610034803 A CN201610034803 A CN 201610034803A CN 105739966 A CN105739966 A CN 105739966A
Authority
CN
China
Prior art keywords
jenkins
code
jenkins platform
platform
source code
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.)
Pending
Application number
CN201610034803.8A
Other languages
Chinese (zh)
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610034803.8A priority Critical patent/CN105739966A/en
Publication of CN105739966A publication Critical patent/CN105739966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a method and a device for continuous integration, wherein the method comprises the following steps: the method comprises the steps of pre-building a Jenkins platform, configuring Maven on the Jenkins platform, and configuring a release mechanism on the Jenkins platform in advance; submitting a source code to be integrated to the Jenkins platform; constructing the source code to be integrated into a code to be issued through the Maven; and triggering the release mechanism, and releasing the code to be released through the Jenkins platform. The embodiment of the invention provides a method and a device for continuous integration, which can make the integration process simpler.

Description

A kind of method of continuous integrating and device
Technical field
The present invention relates to field of computer technology, particularly to method and the device of a kind of continuous integrating.
Background technology
Along with improving constantly of software development complexity, between team exploitation member, how better collaborative work has slowly become unavoidable problem in development process with the quality guaranteeing software development.Especially in the last few years, quick more and more flourishing in field of software engineering, the demand how can be continually changing again rapidly adapts to and to ensure that the quality of software also seems especially important.
Continuous integrating is just for a kind of software development methodology of this class problem, and developer often needs their work integrated, and even every day is all it may happen that repeatedly integrated.In integrated approach of the prior art, it is necessary to developer carries out substantial amounts of manual operation, and integrating process is more complicated.
Summary of the invention
Embodiments provide method and the device of a kind of continuous integrating, it is possible to make integrating process simpler.
On the one hand, a kind of method that the invention provides continuous integrating, including: build Jenkins platform in advance, described Jenkins platform configure Maven, on described Jenkins platform, configure issue mechanism in advance, also include:
S1: submit to described Jenkins platform and treat integrated source code;
S2: treat that integrated source code is configured to code to be released by described by described Maven;
S3: trigger described issue mechanism, issues described code to be released by described Jenkins platform.
Further, described build Jenkins platform in advance, including:
Obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
Further, the method also includes: build Git in advance;
Described S1, including: treat that integrated source code uploads to described Git by described, treat integrated source code by described Git to the submission of described Jenkins platform.
Further, the described issue mechanism of described triggering in described S3, including: trigger described issue mechanism by hook.
Further, after described S3, also include: verify whether described code to be released is issued successfully.
On the other hand, the invention provides the device of a kind of continuous integrating, including:
Build unit, be used for building Jenkins platform, described Jenkins platform configures Maven, described Jenkins platform configures issue mechanism;
Submit unit to, treat integrated source code for submitting to described Jenkins platform;
By described, first construction unit, for treating that integrated source code is configured to code to be released by described Maven;
Release unit, is used for triggering described issue mechanism, issues described code to be released by described Jenkins platform.
Further, described in build unit, perform described in build Jenkins platform in advance time, specifically for: obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
Further, this device also includes: the second construction unit, for building Git in advance;
Described submission unit, for treating that integrated source code uploads to described Git by described, treats integrated source code by described Git to the submission of described Jenkins platform.
Further, described release unit, when performing issue mechanism shown in described triggering, specifically for triggering described issue mechanism by hook.
Further, this device also includes: authentication unit, is used for verifying whether described code to be released is issued successfully.
By embodiments providing method and the device of a kind of continuous integrating, build Jenkins platform, Jenkins platform configures Maven, to treat that integrated source code submits to Jenkins platform, code to be released is built by Maven, issuing code to be released by Jenkins platform, this process is without passing through manually to be operated so that integrating process is simpler.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the method for a kind of continuous integrating that one embodiment of the invention provides;
Fig. 2 is the flow chart of the method for the another kind of continuous integrating that one embodiment of the invention provides;
Fig. 3 is the schematic diagram of the device of a kind of continuous integrating that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the device of the another kind of continuous integrating that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is a part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, a kind of method embodiments providing continuous integrating, the method may comprise steps of:
S0: build Jenkins platform in advance, configures Maven on described Jenkins platform, configures issue mechanism in advance on described Jenkins platform;
S1: submit to described Jenkins platform and treat integrated source code;
S2: treat that integrated source code is configured to code to be released by described by described Maven;
S3: trigger described issue mechanism, issues described code to be released by described Jenkins platform.
By a kind of method embodiments providing continuous integrating, build Jenkins platform, Jenkins platform configures Maven, to treat that integrated source code submits to Jenkins platform, code to be released is built by Maven, issuing code to be released by Jenkins platform, this process is without passing through manually to be operated so that integrating process is simpler.
In a kind of possible implementation, described build Jenkins platform in advance, including:
Obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
Jenkins platform additionally provides very abundant plug-in unit support, in that context it may be convenient to install various third party's plug-in unit, it is possible to more convenient integrated third-party application.Jenkins platform provides the function of abundant management and configuration, configure including system, manage plug-in unit, check system information, system journal, node administration, Jenkins command Window, the function such as Information Statistics.
In a kind of possible implementation, the method also includes: build Git in advance;
Described S1, including: treat that integrated source code uploads to described Git by described, treat integrated source code by described Git to the submission of described Jenkins platform.
In a kind of possible implementation, the described triggering issue mechanism in described S3, including: trigger described issue mechanism by hook.
In a kind of possible implementation, after described S3, also include: verify whether described code to be released is issued successfully.
In this step, if issuing unsuccessful, it is possible to return step S1, re-start issue.All right output journal information, unsuccessful reason is issued in output.
By the method for a kind of continuous integrating that the embodiment of the present invention provides, it is possible to greatly reduce developer's workload in integrating process, make developer focus more on service logic and realize.It addition, by Jenkins platform, additionally it is possible to the mistake of the integrated middle existence of monitor in real time, it is provided that detailed journal file and prompting function, moreover it is possible to show trend and the stability of project build by the form of chart visually.
It is capable of automatic building process by the embodiment of the present invention, including automatic compiling, distribution, deployment and test etc., it is capable of code store by the embodiment of the present invention, namely needs Version Control software to ensure the maintainability of code, simultaneously as the material database of building process.
In the method for a kind of continuous integrating that the embodiment of the present invention provides, each step is automatically performed, it is not necessary to too many manual intervention, advantageously reduces repetitive process with saving time, expense and workload.Be ensure that the integration problem that can find software at any time the very first time by the embodiment of the present invention, making random time issue the software that can dispose becomes possibility.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
As in figure 2 it is shown, a kind of method embodiments providing continuous integrating, the method may comprise steps of:
Step 201: build Jenkins platform in advance, configures Maven on described Jenkins platform, configures issue mechanism in advance, build Git in advance on described Jenkins platform.
Wherein it is possible to build Git server to realize Git.Maven can as the plug-in unit on Jenkins platform.Here issue mechanism may include that issue condition, when after satisfied issue condition, issues.
Step 202: treat that integrated source code uploads to described Git by described, treats integrated source code by described Git to the submission of described Jenkins platform.
Step 203: treat that integrated source code is configured to code to be released by described by described Maven.
Step 204: trigger described issue mechanism by hook, issues described code to be released by described Jenkins platform.
As shown in Figure 3, Figure 4, the device of a kind of continuous integrating is embodiments provided.Device embodiment can be realized by software, it is also possible to is realized by the mode of hardware or software and hardware combining.Say from hardware view; as shown in Figure 3; a kind of hardware structure diagram of device place equipment for a kind of continuous integrating that the embodiment of the present invention provides; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place generally can also include other hardware, such as the forwarding chip etc. of responsible process message.Implemented in software for example, as shown in Figure 4, as the device on a logical meaning, it is that computer program instructions corresponding in nonvolatile memory is read to run in internal memory and formed by the CPU by its place equipment.The device of a kind of continuous integrating that the present embodiment provides, including:
Build unit 401, be used for building Jenkins platform, described Jenkins platform configures Maven, described Jenkins platform configures issue mechanism;
Submit unit 402 to, treat integrated source code for submitting to described Jenkins platform;
By described, first construction unit 403, for treating that integrated source code is configured to code to be released by described Maven;
Release unit 404, is used for triggering described issue mechanism, issues described code to be released by described Jenkins platform.
In a kind of possible implementation, described in build unit 401, perform described in build Jenkins platform in advance time, specifically for: obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
In a kind of possible implementation, this device also includes: the second construction unit, for building Git in advance;
Described submission unit 402, for treating that integrated source code uploads to described Git by described, treats integrated source code by described Git to the submission of described Jenkins platform.
In a kind of possible implementation, described release unit 404, when performing issue mechanism shown in described triggering, specifically for triggering described issue mechanism by hook.
In a kind of possible implementation, this device also includes: authentication unit, is used for verifying whether described code to be released is issued successfully.
The contents such as the information between each unit in said apparatus is mutual, execution process, due to the inventive method embodiment based on same design, particular content referring to the narration in the inventive method embodiment, can repeat no more herein.
It should be understood that the method for a kind of continuous integrating of embodiment of the present invention offer and device, it is possible to it is based on Kubernetes and realizes.
The method of a kind of continuous integrating that the embodiment of the present invention provides and device, have the advantages that
1, by embodiments providing method and the device of a kind of continuous integrating, build Jenkins platform, Jenkins platform configures Maven, to treat that integrated source code submits to Jenkins platform, code to be released is built by Maven, issuing code to be released by Jenkins platform, this process is without passing through manually to be operated so that integrating process is simpler.
2, the method for a kind of continuous integrating provided by the embodiment of the present invention and device, it is possible to greatly reduce developer's workload in integrating process, is made developer focus more on service logic and realizes.It addition, by Jenkins platform, additionally it is possible to the mistake of the integrated middle existence of monitor in real time, it is provided that detailed journal file and prompting function, moreover it is possible to show trend and the stability of project build by the form of chart visually.
3, the method for a kind of continuous integrating provided by the embodiment of the present invention and device, it is capable of automatic building process, including automatic compiling, distribution, deployment and test etc., it is capable of code store by the embodiment of the present invention, namely need Version Control software to ensure the maintainability of code, simultaneously as the material database of building process.
4, the embodiment of the present invention provides a kind of method of continuous integrating and device, can be automatically performed and treat the integrated of integrated source code, without too many manual intervention, advantageously reduce repetitive process with saving time, expense and workload, the method of a kind of continuous integrating provided by the embodiment of the present invention and device, ensure that the integration problem that can find software at any time the very first time, making random time issue the software that can dispose becomes possibility.
It should be noted that, in this article, the relational terms of such as first and second etc is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including " key element limited, it is not excluded that there is also other same factor in including the process of described key element, method, article or equipment.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: in the various media that can store program code such as ROM, RAM, magnetic disc or CD.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate technical scheme, is not intended to limit protection scope of the present invention.All make within the spirit and principles in the present invention any amendment, equivalent replacement, improvement etc., be all contained in protection scope of the present invention.

Claims (10)

1. the method for a continuous integrating, it is characterised in that including: build Jenkins platform in advance, configures Maven on described Jenkins platform, configures issue mechanism in advance, also include on described Jenkins platform:
S1: submit to described Jenkins platform and treat integrated source code;
S2: treat that integrated source code is configured to code to be released by described by described Maven;
S3: trigger described issue mechanism, issues described code to be released by described Jenkins platform.
2. method according to claim 1, it is characterised in that described build Jenkins platform in advance, including:
Obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
3. method according to claim 1, it is characterised in that also include: build Git in advance;
Described S1, including: treat that integrated source code uploads to described Git by described, treat integrated source code by described Git to the submission of described Jenkins platform.
4. method according to claim 1, it is characterised in that the described issue mechanism of described triggering in described S3, including: trigger described issue mechanism by hook.
5. according to described method arbitrary in claim 1-4, it is characterised in that after described S3, also include: verify whether described code to be released is issued successfully.
6. the device of a continuous integrating, it is characterised in that including:
Build unit, be used for building Jenkins platform, described Jenkins platform configures Maven, described Jenkins platform configures issue mechanism;
Submit unit to, treat integrated source code for submitting to described Jenkins platform;
By described, first construction unit, for treating that integrated source code is configured to code to be released by described Maven;
Release unit, is used for triggering described issue mechanism, issues described code to be released by described Jenkins platform.
7. device according to claim 6, it is characterised in that described in build unit, perform described in build Jenkins platform in advance time, specifically for: obtain jenkins.war file, run the java-jarjenkins.war in described jenkins.war file.
8. device according to claim 6, it is characterised in that also include: the second construction unit, for building Git in advance;
Described submission unit, for treating that integrated source code uploads to described Git by described, treats integrated source code by described Git to the submission of described Jenkins platform.
9. device according to claim 6, it is characterised in that described release unit, when performing issue mechanism shown in described triggering, specifically for triggering described issue mechanism by hook.
10. according to described device arbitrary in claim 6-9, it is characterised in that also include: authentication unit, be used for verifying whether described code to be released is issued successfully.
CN201610034803.8A 2016-01-19 2016-01-19 Continuous integration method and device Pending CN105739966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610034803.8A CN105739966A (en) 2016-01-19 2016-01-19 Continuous integration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610034803.8A CN105739966A (en) 2016-01-19 2016-01-19 Continuous integration method and device

Publications (1)

Publication Number Publication Date
CN105739966A true CN105739966A (en) 2016-07-06

Family

ID=56247458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610034803.8A Pending CN105739966A (en) 2016-01-19 2016-01-19 Continuous integration method and device

Country Status (1)

Country Link
CN (1) CN105739966A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407106A (en) * 2016-08-26 2017-02-15 郑州悉知信息科技股份有限公司 Code management system and method
CN106648786A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Android application establishment method and system
CN106909386A (en) * 2017-02-27 2017-06-30 郑州云海信息技术有限公司 A kind of cloud platform code continuous integrating method and system
CN107133036A (en) * 2017-04-26 2017-09-05 武汉斗鱼网络科技有限公司 The management method and device of a kind of module
CN107678773A (en) * 2017-09-28 2018-02-09 郑州云海信息技术有限公司 A kind of code development based on git and testing process management method
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project
CN109032625A (en) * 2018-09-04 2018-12-18 山东浪潮云投信息科技有限公司 A kind of software continuous integrated approach and device
WO2019042311A1 (en) * 2017-08-31 2019-03-07 华为技术有限公司 Software project setup task configuration method and device using jenkins
CN109766091A (en) * 2018-12-29 2019-05-17 北京航天云路有限公司 A kind of method and system of continuous integrating
CN109783075A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Distributed task scheduling construction method based on jenkins, device, computer equipment
CN110262806A (en) * 2019-06-20 2019-09-20 杭州泰然鲸数云计算有限公司 A kind of DevOps system for supporting automation services layout
CN110750259A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Method and device for treating a component

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391690A (en) * 2014-11-04 2015-03-04 中国石油天然气股份有限公司 Application development system and method
CN105138386A (en) * 2015-08-26 2015-12-09 浪潮集团有限公司 Logic design verification continuous integration platform based on Jenkins and vManager
US20150381742A1 (en) * 2014-06-30 2015-12-31 Verizon Patent And Licensing Inc. Automated web services validation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150381742A1 (en) * 2014-06-30 2015-12-31 Verizon Patent And Licensing Inc. Automated web services validation
CN104391690A (en) * 2014-11-04 2015-03-04 中国石油天然气股份有限公司 Application development system and method
CN105138386A (en) * 2015-08-26 2015-12-09 浪潮集团有限公司 Logic design verification continuous integration platform based on Jenkins and vManager

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WANGMM0218: "第二章Jenkins安装与配置", 《HTTPS://BLOG.CSDN.NET/WANGMUMING/ARTICLE/DETAILS/22925127》 *
怀素1980: "基于Jenkins的自动构建***开发", 《HTTPS://BLOG.CSDN.NET/HUAISHU/ARTICLE/DETAILS/38679811》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407106A (en) * 2016-08-26 2017-02-15 郑州悉知信息科技股份有限公司 Code management system and method
CN106648786A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Android application establishment method and system
CN106909386A (en) * 2017-02-27 2017-06-30 郑州云海信息技术有限公司 A kind of cloud platform code continuous integrating method and system
CN107133036A (en) * 2017-04-26 2017-09-05 武汉斗鱼网络科技有限公司 The management method and device of a kind of module
CN107133036B (en) * 2017-04-26 2020-10-16 武汉斗鱼网络科技有限公司 Module management method and device
WO2019042311A1 (en) * 2017-08-31 2019-03-07 华为技术有限公司 Software project setup task configuration method and device using jenkins
CN107678773A (en) * 2017-09-28 2018-02-09 郑州云海信息技术有限公司 A kind of code development based on git and testing process management method
CN108196825A (en) * 2017-12-28 2018-06-22 新华三大数据技术有限公司 The construction method and system of software project
CN110750259A (en) * 2018-07-23 2020-02-04 北京奇虎科技有限公司 Method and device for treating a component
CN110750259B (en) * 2018-07-23 2024-04-05 三六零科技集团有限公司 Method and device for processing component
CN109032625A (en) * 2018-09-04 2018-12-18 山东浪潮云投信息科技有限公司 A kind of software continuous integrated approach and device
CN109783075A (en) * 2018-12-13 2019-05-21 平安普惠企业管理有限公司 Distributed task scheduling construction method based on jenkins, device, computer equipment
CN109766091A (en) * 2018-12-29 2019-05-17 北京航天云路有限公司 A kind of method and system of continuous integrating
CN110262806A (en) * 2019-06-20 2019-09-20 杭州泰然鲸数云计算有限公司 A kind of DevOps system for supporting automation services layout
CN110262806B (en) * 2019-06-20 2022-10-18 杭州泰然鲸数云计算有限公司 DevOps system supporting automatic service arrangement

Similar Documents

Publication Publication Date Title
CN105739966A (en) Continuous integration method and device
US20180157466A1 (en) Software release workflow management
US10664771B2 (en) Product development management system and method
EP3072079B1 (en) A system and method for implementing application policies among development environments
US20150378722A1 (en) Enhanced compliance verification system
US20140006459A1 (en) Rule-based automated test data generation
US20070006130A1 (en) Model oriented method of automatically detecting alterations in the design of a software system
CN108319656A (en) Realize the method, apparatus and calculate node and system that gray scale is issued
US10917456B2 (en) Application management in an application deployment pipeline
CN102449598A (en) Package design and generation
CN111208975A (en) Concurrent execution service
CN101379504A (en) Virtual roles
US9710356B2 (en) Assertions in a business rule management system
CN108833497A (en) Distributed post method and system, user terminal, server and distribution apparatus
US20140310070A1 (en) Coordinated business rules management and mixed integer programming
JP2017045217A (en) Log management device, log management method, and log management program
CN103971224A (en) Signing method and system
CN111026569A (en) Method for repairing designated block data in alliance chain
CN115827051A (en) Software integration management system, method and server
CN108830541A (en) Issue management method and management system on a kind of line
CN113918162A (en) Front-end code automatic checking method based on centralized management mode
JP7246301B2 (en) Program development support system and program development support method
CN111984246A (en) Enterprise-level system automatic deployment method and device in distributed environment
CN110737426A (en) Program block creating method, program block creating device, computer equipment and storage medium
WO2018174163A1 (en) Development operation supporting system, development management server, operation management server, method thereof, and non-transient computer readable medium storing program thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160706

WD01 Invention patent application deemed withdrawn after publication