CN110209398A - A kind of method that DevOps carries out continuous integrating service based on agreement - Google Patents
A kind of method that DevOps carries out continuous integrating service based on agreement Download PDFInfo
- Publication number
- CN110209398A CN110209398A CN201910480843.9A CN201910480843A CN110209398A CN 110209398 A CN110209398 A CN 110209398A CN 201910480843 A CN201910480843 A CN 201910480843A CN 110209398 A CN110209398 A CN 110209398A
- Authority
- CN
- China
- Prior art keywords
- user
- framework
- context
- continuous
- script file
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 92
- 238000013515 script Methods 0.000 claims abstract description 60
- 230000008569 process Effects 0.000 claims abstract description 53
- 230000007613 environmental effect Effects 0.000 claims abstract description 28
- 238000012360 testing method Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 7
- 230000010354 integration Effects 0.000 claims description 6
- 230000002045 lasting effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000007630 basic procedure Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention discloses a kind of method that DevOps carries out continuous integrating service based on agreement, is related to DevOps and distributes technical field rationally;The user in continuous integrating frame CI Framework constraint Travis CI continuous integrating service process is utilized in DevOps platform, custom script file is placed in the executable script file of agreement title by user can be performed script file so that CI Framework calls user's existing continuous to integrate according to agreement name-matches in service process, execute user's custom script file, the context environmental operated tool that user is provided when executing custom script file by CI Framework obtains and extension existing continuous integrates the context in service process, drive entire Travis CI continuous integrating service procedure.
Description
Technical field
The present invention discloses a kind of method that DevOps carries out continuous integrating service based on agreement, is related to DevOps and distributes rationally
Technical field.
Background technique
The introducing of DevOps can deliver product, test, far-reaching influence is played in functional development and maintenance.Run people
Member requires better reliability and safety, and developer then wishes infrastructure response faster, and the demand of service-user is then
It is that more characteristics are quickly distributed to end user to use.DevOps itself be supplied to user a whole set of from code submit,
A series of management tool of procedure links such as continuous integrating, deployment control.Operation maintenance personnel is the person of building and the fortune of DevOps environment
Battalion person, code development and tester are then the users of DevOps environment.Although the basic procedure structure of DevOps is substantially all
It is much like, but the scene of DevOps application but needs to be determined according to user's different demands.
The present invention provides a kind of method that DevOps carries out continuous integrating service based on agreement, realizes holding automatically for DevOps
Continuousization is integrated, disposes, and introduces corresponding tool and strategy to promote the degree of automation, meets customization demand, realization can manage
, efficiently utilize resource lasting deployment process.
Summary of the invention
The present invention is directed to problem of the prior art, provides a kind of side of the DevOps based on agreement progress continuous integrating service
Method, concrete scheme proposed by the present invention is:
A kind of method that DevOps carries out continuous integrating service based on agreement:
Travis CI continuous integrating service process is constrained using continuous integrating frame CI Framework in DevOps platform
In user,
Custom script file is placed in the executable script file of agreement title so as to CIFramework by user
Calling user's existing continuous to integrate according to agreement name-matches can be performed script file in service process, execute user and make by oneself
Adopted script file,
The context environmental operated tool that user is provided when executing custom script file by CI Framework
The context in the integrated service process of existing continuous is obtained and extended, entire Travis CI continuous integrating service flow is driven
Journey.
CI Framework calls the warehouse user Git to specify in Resource TOC and presses according to agreement title in the method
The existing continuous of name-matches, which integrates, can be performed script file in service process.
The CIFramework readjustment that user is provided by context environmental operated tool Resource TOC in the method
The script of support handles file, obtains and extends the context data in the integrated service process of existing continuous, user also utilizes
Context environmental operated tool is added the customized analysis to the context data in continuous integrating service process and is handled.
Continuous integrating frame CI Framework provides data buffer storage in continuous integrating service process in the method
Context environmental initial environment data are obtained by Travis CI, subsequent and in context environmental initialization procedure
Continuous integrating services in substep implementation procedure, collects the intermediate data of generation.
DevOps platform provides RESTful API Access interface in the method, realizes in user's access context
Hold, while integration test can be carried out with external service.
A kind of DevOps platform carrying out continuous integrating service based on agreement:
It is taken in the DevOps platform using continuous integrating frame CI Framework constraint Travis CI continuous integrating
User during business,
Custom script file is placed in the executable script file of agreement title so as to CI by user
Framework calls user's existing continuous to integrate and script file can be performed in service process, execute according to agreement name-matches
User's custom script file,
The context environmental operated tool that user is provided when executing custom script file by CI Framework
The context in the integrated service process of existing continuous is obtained and extended, entire Travis CI continuous integrating service flow is driven
Journey.
CI Framework calls the warehouse user Git to specify resource mesh according to agreement title in the DevOps platform
Matched existing continuous integrates and script file can be performed in service process by name in record.
User passes through the CI that context environmental operated tool Resource TOC provides in the DevOps platform
The script that Framework readjustment is supported handles file, and acquisition and extension existing continuous integrate the context data in service process,
User also utilizes context environmental operated tool to add customized point to the context data in continuous integrating service process
Analysis processing.
Continuous integrating frame CI Framework provides number in continuous integrating service process in the DevOps platform
According to the context environmental of caching, and in context environmental initialization procedure, initial environment data are obtained by Travis CI,
In subsequent continuous integrating service substep implementation procedure, the intermediate data of generation is collected.
RESTful API Access interface is provided in the DevOps platform, realizes user's access context content, together
When can with external service carry out integration test.
Usefulness of the present invention is:
The present invention provides a kind of DevOps method for carrying out continuous integrating service based on agreement, using holding in DevOps platform
User in continuous integrated framework CI Framework constraint Travis CI continuous integrating service process, user will be customized
Script file is placed in the executable script file of agreement title so that CI Framework is called according to agreement name-matches
User's existing continuous, which integrates, can be performed script file in service process, execute user's custom script file, user exists
The context environmental operated tool provided when executing custom script file by CI Framework obtains and extension is currently held
Sequel drives entire Travis CI continuous integrating service procedure at the context in service process;The present invention is improved and is mentioned
The customization demand that the virtualization and cloud computing infrastructure (Docker, Virtual Machine) for rising DevOps use, utilizes
CI Framework constrains the user of Travis CI continuous integrating process, realizes and opens to extension, closes to modification
Principle, support basic continuous integrating treatment process, also support user holding for customizedization is executed in the way of agreement
Sequel at;According to agreement better than configuration principle, framework services provide context swap, realize continuous integrating data collection and
Processing.
Detailed description of the invention
Fig. 1 is the method for the present invention flow diagram.
Fig. 2 is the block diagram of the warehouse Git (Custom Git Repository);
Fig. 3 is the block diagram that CI Framework calls executable script file;
Fig. 4 is the block diagram of the tool resources catalogue in the warehouse Git,
Fig. 5 is the schematic diagram for the current context content that user obtains;
Fig. 6 is that CI Framework provides the block diagram of global.cfg file;
Fig. 7 is the block diagram that CI Framework obtains initialization context by the API that Travis CI is provided.
Specific embodiment
The present invention provides a kind of method that DevOps carries out continuous integrating service based on agreement:
Travis CI continuous integrating service process is constrained using continuous integrating frame CI Framework in DevOps platform
In user,
Custom script file is placed in the executable script file of agreement title so as to CI by user
Framework calls user's existing continuous to integrate and script file can be performed in service process, execute according to agreement name-matches
User's custom script file,
The context environmental operated tool that user is provided when executing custom script file by CI Framework
The context in the integrated service process of existing continuous is obtained and extended, entire Travis CI continuous integrating service flow is driven
Journey.
A kind of DevOps platform being carried out continuous integrating service based on agreement is provided simultaneously:
It is taken in the DevOps platform using continuous integrating frame CI Framework constraint Travis CI continuous integrating
User during business,
Custom script file is placed in the executable script file of agreement title so as to CI by user
Framework calls user's existing continuous to integrate and script file can be performed in service process, execute according to agreement name-matches
User's custom script file,
The context environmental operated tool that user is provided when executing custom script file by CI Framework
The context in the integrated service process of existing continuous is obtained and extended, entire Travis CI continuous integrating service flow is driven
Journey.
The present invention will be further explained below with reference to the attached drawings and specific examples, so that those skilled in the art can be with
It more fully understands the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Existing DevOps platform environment Travis CI passes through in the root of the code storage of current DevOps trustship
The YAML format descriptor of one entitled " .travis.yml " is added, Jenkins continuous integrating performing environment is according to this document
It describes to execute the continuous integrating process for the customization of current code warehouse.Typical Travis CI customization description file is as follows:
sudo:required
language:ruby
services:
-docker
before_install:
-echo“Testing Docker Hub credentials”
- docker login-e=$ DOCKER_EMAIL-u=$ DOCKER_USERNAME
-echo“Docker Hub credentials are working”
-docker build-t build-springxd-base.
script:
-docker ps–a
The DevOps platform environment that the method for the present invention is built in DevOps platform, utilizes CI Framework (continuous integrating
Frame) user that meets " constraint " continuous integrating process during the Travis CI of opposite " wide in range ", in the mistake of " agreement "
In journey context, the continuous integrating process of oneself is customized.
Continued in DevOps platform using continuous integrating frame CI Framework constraint Travis CI in the method for the present invention
User in integrated service process,
Custom script file is placed on the executable script file (process_exec.sh) of agreement title by user
In so as to CI Framework according to agreement name-matches call user's existing continuous integrate service process in can be performed script
File, execution user's custom script file, one side of homophony that wherein CI Framework is handled as continuous integrating, according to
The title of agreement calls the warehouse user Git (Custom Git Repository) to specify Resource TOC (.ci_
Resources) inner that script file can be performed by the matched currently processed process of name, for example, current travis.yml file calls
The step of are as follows: ci_framework process, CI Framework, which executes Resource TOC (.ci_resources), can be performed foot
This process_exec.sh file.This script file is the centralized file of homophony that practical driving executes CI;
And user passes through context environmental operated tool Resource TOC (.ci_ when executing custom script file
Resources the script that the CI Framework readjustment) provided is supported handles file, acquisition and the integrated service of extension existing continuous
Context in the process, user also utilize the addition of context environmental operated tool to upper in continuous integrating service process
The customized analysis of context data is handled, and by processing result by context, is prepared for the processing of next step continuous integrating,
Drive entire Travis CI continuous integrating service procedure.
Processing result is produced into report generation part (report.py, report.tpl) in the present invention, may be present two
File carrys out mabage report, is because CI Framework supports the not specified template of user to assemble display continuous integrating result report
It accuses, report.tpl is set to sky;When user edits template file (report.tpl), CI according to their own needs
The key assignments set that Framework is provided according to current context is gone to replace the key content of customized template, thus presentation user from
The continuous integrating result of definition is reported;
And the configuration for global context data, CI Framework provide global.cfg file, it is initial as frame
A part of change is loaded into context when starting continuous integrating task, and Travis CI is context performing environment
Parent, CI Framework are to link up general Travis CI and the continuous integrating process according to " agreement is better than configuration "
Tie, CI Framework obtain initialization context by the API that Travis CI is provided, while also can use it and mentioning
The API of confession manipulates existing context, and CI Framework provides the upper of data buffer storage in continuous integrating service process
Hereafter environment, and in context environmental initialization procedure, initial environment data are obtained by Travis CI, subsequent lasting
In integrated service substep implementation procedure, the intermediate data of generation is collected;
RESTful API Access interface can also be provided in DevOps platform, realizes user's access context content, while energy
Enough and external service carries out integration test.
Basic continue both had been supported according to the principle of " opening to extension, close to modification " using aforementioned present invention method
Integrated treatment process, also supports the customized mode of user;
Simultaneously according to the principle of " agreement is better than configuration ", the executable script file of specific names is called by framework services,
Being not required to modification can be completed most of continuous integrating treatment process.
And context data space is provided, data exchange is provided for continuous integrating processing step.
Support operation context scripts interface can also be provided, realize the manipulation to continuous integrating context data.
Global configuration setting can also be provided, during initialization Configuration Framework.
RESTful API mode can also be provided and realize access interface, can realize integration test with external service.
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention
It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention
Protection scope within.Protection scope of the present invention is subject to claims.
Claims (10)
1. a kind of method that DevOps carries out continuous integrating service based on agreement, it is characterized in that
Using in continuous integrating frame CI Framework constraint Travis CI continuous integrating service process in DevOps platform
User,
User by custom script file be placed on agreement title executable script file in so as to CI Framework by
Name-matches, which call user's existing continuous to integrate, as agreed can be performed script file in service process, it is customized to execute user
Script file,
User is obtained when executing custom script file by the context environmental operated tool that CI Framework is provided
The context in service process is integrated with extension existing continuous, drives entire Travis CI continuous integrating service procedure.
2. according to the method described in claim 1, it is characterized in that CI Framework calls the storehouse user Git according to agreement title
Matched existing continuous integrates and script file can be performed in service process by name in the specified Resource TOC in library.
3. method according to claim 1 or 2, it is characterized in that user passes through context environmental operated tool Resource TOC
The script that the CI Framework readjustment of offer is supported handles file, and acquisition and extension existing continuous integrate upper in service process
Context data, user also utilize the addition of context environmental operated tool to the context data in continuous integrating service process
Customized analysis processing.
4. according to the method described in claim 3, it is characterized in that continuous integrating frame CI Framework is in continuous integrating service
The context environmental of data buffer storage is provided in the process, and in context environmental initialization procedure, obtained just by Travis CI
Beginning environmental data collects the intermediate data of generation in subsequent continuous integrating service substep implementation procedure.
5. method according to claim 1 or 4, it is characterized in that DevOps platform provides RESTful API Access interface, it is real
Existing user's access context content, while integration test can be carried out with external service.
6. a kind of DevOps platform that continuous integrating service is carried out based on agreement, it is characterized in that
It was serviced in the DevOps platform using continuous integrating frame CI Framework constraint Travis CI continuous integrating
User in journey,
User by custom script file be placed on agreement title executable script file in so as to CI Framework by
Name-matches, which call user's existing continuous to integrate, as agreed can be performed script file in service process, it is customized to execute user
Script file,
User is obtained when executing custom script file by the context environmental operated tool that CI Framework is provided
The context in service process is integrated with extension existing continuous, drives entire Travis CI continuous integrating service procedure.
7. DevOps platform according to claim 6 uses it is characterized in that CI Framework is called according to agreement title
Matched existing continuous integrates and script file can be performed in service process by name in the specified Resource TOC in the warehouse person Git.
8. DevOps platform according to claim 6 or 7, it is characterized in that user is provided by context environmental operated tool
The script that the CI Framework readjustment that source directory provides is supported handles file, obtains and extension existing continuous integrates service process
In context data, user also utilize context environmental operated tool addition to the context in continuous integrating service process
The customized analysis of data is handled.
9. DevOps platform according to claim 8, it is characterized in that continuous integrating frame CI Framework is in lasting collection
At the context environmental of offer data buffer storage in service process, and in context environmental initialization procedure, pass through Travis CI
Initial environment data are obtained, in subsequent continuous integrating service substep implementation procedure, collect the intermediate data of generation.
10. DevOps platform according to claim 6 or 9 is realized it is characterized in that providing RESTful API Access interface
User's access context content, while integration test can be carried out with external service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910480843.9A CN110209398A (en) | 2019-06-04 | 2019-06-04 | A kind of method that DevOps carries out continuous integrating service based on agreement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910480843.9A CN110209398A (en) | 2019-06-04 | 2019-06-04 | A kind of method that DevOps carries out continuous integrating service based on agreement |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209398A true CN110209398A (en) | 2019-09-06 |
Family
ID=67790594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910480843.9A Pending CN110209398A (en) | 2019-06-04 | 2019-06-04 | A kind of method that DevOps carries out continuous integrating service based on agreement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209398A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527376A (en) * | 2020-11-20 | 2021-03-19 | 浪潮软件科技有限公司 | Method for realizing DevOps automation based on reverse proxy service |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
CN108388445A (en) * | 2018-03-09 | 2018-08-10 | 北京四方继保自动化股份有限公司 | One kind being based on the continuous integrating method of " platform+application " pattern |
-
2019
- 2019-06-04 CN CN201910480843.9A patent/CN110209398A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106547689A (en) * | 2016-10-20 | 2017-03-29 | 金航数码科技有限责任公司 | A kind of automatic test cases development system and method based on web |
CN108388445A (en) * | 2018-03-09 | 2018-08-10 | 北京四方继保自动化股份有限公司 | One kind being based on the continuous integrating method of " platform+application " pattern |
Non-Patent Citations (3)
Title |
---|
GEORGES BOU GHANTOUS: "DevOps:Concepts,Practices,Tools,Benefits and Challenges", 《AISELIBRARY》 * |
康丰等: "持续集成和自动化测试在信用卡系统开发中的应用", 《中国信用卡》 * |
陶文寅 等: "基于Travis CI 和FIR的Android持续集成与应用分发系统的设计与实现", 《福建电脑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112527376A (en) * | 2020-11-20 | 2021-03-19 | 浪潮软件科技有限公司 | Method for realizing DevOps automation based on reverse proxy service |
CN112527376B (en) * | 2020-11-20 | 2023-07-18 | 浪潮软件科技有限公司 | Method for realizing DevOps automation based on reverse proxy service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110928529B (en) | Method and system for assisting operator development | |
US10587464B2 (en) | Automatic provisioning of a software development environment | |
US8886777B2 (en) | Moving enterprise software applications to a cloud domain | |
US11635974B2 (en) | Providing a different configuration of added functionality for each of the stages of predeployment, deployment, and post deployment using a layer of abstraction | |
US20070168971A1 (en) | Multi-tiered model-based application testing | |
AU2011289732B2 (en) | Moving enterprise software applications to a cloud domain | |
EP1612677A2 (en) | Smart GUI Activity Recording and Playback Framework | |
Ventre et al. | Performance evaluation and tuning of virtual infrastructure managers for (micro) virtual network functions | |
US20200226323A1 (en) | Creating a customized email that includes an action link generated based on form data | |
CN102521024B (en) | Job scheduling method based on bioinformation cloud platform | |
CN1836213A (en) | Automatic and dynamic provisioning of databases | |
CN111142884B (en) | Version deployment method and device of applet, electronic equipment and storage medium | |
CN104516809B (en) | A kind of automatization test system and method | |
JP2011203894A (en) | Information processing apparatus, business form data producing method and computer program | |
CN108241582A (en) | A kind of software automated testing platform based on RabbitMQ message-oriented middlewares | |
US20130198333A1 (en) | Method and device for recording and reproducing web operation | |
WO2022142931A1 (en) | Network device inspection method, apparatus, and device, and storage medium | |
US10608907B2 (en) | Open-loop control assistant to guide human-machine interaction | |
US20240080354A1 (en) | Providing bulk server-side custom actions for multiple rows of a client-side spread sheet | |
CN111459801A (en) | RSF remote service interface function test method, module, computer equipment and storage medium | |
CN113204495A (en) | Automatic testing method and device based on B/S architecture, storage medium and equipment | |
EP4296861A1 (en) | System and method for cloud infrastructure test automation | |
CN110209398A (en) | A kind of method that DevOps carries out continuous integrating service based on agreement | |
CN103678485B (en) | Virtual experiment process node driving and movable packaging system | |
CN109446454A (en) | A kind of high performance PHPWeb system framework of lightweight and working method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190906 |
|
RJ01 | Rejection of invention patent application after publication |