CN107832089A - A kind of method of updating software version automatically number - Google Patents
A kind of method of updating software version automatically number Download PDFInfo
- Publication number
- CN107832089A CN107832089A CN201711106369.0A CN201711106369A CN107832089A CN 107832089 A CN107832089 A CN 107832089A CN 201711106369 A CN201711106369 A CN 201711106369A CN 107832089 A CN107832089 A CN 107832089A
- Authority
- CN
- China
- Prior art keywords
- software
- version number
- software version
- date
- updating
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method of updating software version automatically number, comprise the following steps:First in software development, the integration scheme table for including software version number is made by software upgrading plan, and be stored in the file bag of software;When integrated software is then needed in software development process, the software version number in integration scheme table is read, extracts the date in software version number;The date in software version number was compared with the date on the same day in next step see it is whether identical, if identical, using the software version number as the software version number after renewal, if it is different, then generating temporary version number as the software version number after updating;Finally using the software version number name software after renewal, start integrated software.The present invention be used for software development process in integrated software when, automatic generating software version number, remove from be manually entered it is cumbersome.
Description
Technical field
The present invention relates to software naming technique field, and in particular to a kind of method of updating software version automatically number.
Background technology
Software version number is that engineer is software for identifying the numbering of different conditions software to product on stream
Identity ID, generally each integration release software, can write unique software version number in software.Integrated Simulation has been at present
Continuous integrating instrument can be used(Such as Jenkins)Carry out automation to integrate, but the software version number renewal before integrating is but
Need manually to update in code, reduce integrated automaticity.
The content of the invention
The present invention is directed to the deficiency in background technology, proposes that one kind automatically generates software version number using integration scheme table
Solution.
To achieve the above object, the present invention provides a kind of method of updating software version automatically number, comprises the following steps:
When S1, software development, the integration scheme table for including software version number is made by software upgrading plan, and be stored in software
In file bag;
S2, when needing in software development process integrated software, the software version number in integration scheme table is read, extracts software version
Date in this number;
S3, the date in software version number was compared with the date on the same day and whether identical sees, if identical, use the software
Version number is as the software version number after renewal;If it is different, then generation temporary version number is as the software version number after renewal;
S4, software, beginning integrated software are named using the software version number after renewal.
Further, by the date in version number, order forms multiple row to described integration scheme table from front to back sooner or later, often
One is classified as a software version number.
Further, the software version number was just deleted in integration scheme table after often using a software version number, under
First by the software version number for coming foremost during secondary use.
Further, the software version number in the integration scheme table and the temporary version number of generation include stage volume
Code, release, date and project stage information.
Further, the rules of arrangement of the software version number in the integration scheme table is:Stage coding-the n-th edition-day
Phase-project stage.
Further, the create-rule of the temporary version number is:Stage coding-last time renewal during last time renewal
When version number+1- on the day of date-project stage.
Further, the method for integrated software is to be integrated by software continuous integration tool in step S4.
Further, described integration tool is Jenkins.
The beneficial effect that the present invention realizes mainly have it is following some:Pass through the side of the updating software version automatically number of the present invention
Method, the version number for being manually entered software can not had to, directly automatically generate, software is quickly generated automatically when facilitating Integrated Simulation
Version number;It is direct when conveniently needing software version number there is provided the integration scheme table of a record different times software version number
Extraction is as new software version number from integration scheme table;Software version number in integration scheme table in chronological sequence sorts,
And used software version number is come above by being automatically deleted, it is next to be using first version number using direct
Can;There is provided a kind of rule of interim generation software version number, conveniently used during interim integrated generation software.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method for updating software version automatically number in the embodiment of the present invention one;
Accompanying drawing being given for example only property explanation, it is impossible to be interpreted as the limitation to this patent;In order to more preferably illustrate the present embodiment, accompanying drawing
A little parts have omission, zoomed in or out, and do not represent the size of actual product;To those skilled in the art, accompanying drawing
In some known features and its explanation may omit and will be understood by;Same or analogous label corresponds to same or analogous portion
Part;Term the being given for example only property explanation of position relationship described in accompanying drawing, it is impossible to be interpreted as the limitation to this patent.
Embodiment
For the ease of it will be appreciated by those skilled in the art that being carried out below in conjunction with accompanying drawing and embodiment to the present invention further
It is described in detail.
Embodiment one
Referring to Fig. 1, a kind of method of updating software version automatically number, comprises the following steps:
When S1, software development, the integration scheme table for including software version number is made by software upgrading plan, and be stored in software
In file bag;When software development forms plan, it is integration scheme table just to make a renewal planning chart, is stored in the text of software
In part bag, later Integrated Simulation instrument can by the use of the software version number in integration scheme table as during follow-up renewal software it is soft
Part version number;
S2, when needing in software development process integrated software, the software version number in integration scheme table is read, extracts software version
Date in this number;
S3, the date in software version number was compared with the date on the same day and whether identical sees, if identical, use the software
Version number is as the software version number after renewal;If it is different, then generation temporary version number is as the software version number after renewal;
S4, software, beginning integrated software are named using the software version number after renewal.
By the date in version number, order forms multiple row to integration scheme table described in abovementioned steps from front to back sooner or later, often
One is classified as a software version number;The software version was just deleted in integration scheme table after often using a software version number
Number, first by the software version number for coming foremost when next time uses.Following Tables 1 and 2, version number is according to time order and function
Order arranges from front to back, after first version number in table 1 is previously used, is then automatically deleted the version number, integrates meter
Draw table and table 2 is changed into from table 1, first version number in table 2 is directly used when next time reuses.
Table 1
Table 2
Such as Tables 1 and 2, the temporary version number of software version number and generation in foregoing integration scheme table includes the stage and compiled
Code, release, date and project stage information.The rules of arrangement of software version number in integration scheme table is:Stage coding-the n-th
Version-the date-project stage, such as:01-2001-170706-A represents 2001 editions-A stages on July 6th, 1 of first stage-the.
The create-rule of foregoing temporary version number is:Version when stage coding-last time during last time renewal updates
Date-project stage on the day of this number+1-, e.g., last version number is 01-2002-170706-A, and the current date is 2017
On October 20, in, then the version number generated is 01-2003-171020-A.
In foregoing step S4, the method for integrated software is integrates by software continuous integration tool, described integrated work
Tool can be the integration tools such as Jenkins.
It is the wherein specific implementation of the present invention above, its description is more specific and detailed, but can not therefore manage
Solve as the limitation to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, do not departing from
On the premise of present inventive concept, various modifications and improvements can be made, these obvious alternative forms belong to this hair
Bright protection domain.
Claims (8)
- A kind of 1. method of updating software version automatically number, it is characterised in that comprise the following steps:When S1, software development, the integration scheme table for including software version number is made by software upgrading plan, and be stored in software In file bag;S2, when needing in software development process integrated software, the software version number in integration scheme table is read, extracts software version Date in this number;S3, the date in software version number was compared with the date on the same day and whether identical sees, if identical, use the software Version number is as the software version number after renewal;If it is different, then generation temporary version number is as the software version number after renewal;S4, software, beginning integrated software are named using the software version number after renewal.
- 2. the method for updating software version automatically number according to claim 1, it is characterised in that:Described integration scheme table By the date in version number, order forms multiple row from front to back sooner or later, each to be classified as a software version number.
- 3. the method for updating software version automatically number according to claim 2, it is characterised in that:Often used a software Just the software version number is deleted after version number in integration scheme table, first by the software version for coming foremost when next time uses This number.
- 4. the method for updating software version automatically number according to claim 3, it is characterised in that:In the integration scheme table Software version number and generation temporary version number include stage coding, release, date and project stage information.
- 5. the method for updating software version automatically number according to claim 4, it is characterised in that:In the integration scheme table The rules of arrangement of software version number be:Stage coding-the n-th edition-date-project stage.
- 6. the method for updating software version automatically number according to claim 4, it is characterised in that:The temporary version number Create-rule is:Date-project stage on the day of version number+1- when stage coding-last time during last time renewal updates.
- 7. the method for updating software version automatically number according to claim 1, it is characterised in that:Integrated software in step S4 Method to be integrated by software continuous integration tool.
- 8. the method for updating software version automatically number according to claim 7, it is characterised in that:Described integration tool is Jenkins。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711106369.0A CN107832089B (en) | 2017-11-10 | 2017-11-10 | Method for automatically updating software version number |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711106369.0A CN107832089B (en) | 2017-11-10 | 2017-11-10 | Method for automatically updating software version number |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107832089A true CN107832089A (en) | 2018-03-23 |
| CN107832089B CN107832089B (en) | 2021-01-01 |
Family
ID=61654224
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711106369.0A Active CN107832089B (en) | 2017-11-10 | 2017-11-10 | Method for automatically updating software version number |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107832089B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111638905A (en) * | 2020-05-12 | 2020-09-08 | 中信百信银行股份有限公司 | Version number generation method and device, electronic equipment and readable storage medium |
| CN115185821A (en) * | 2022-06-22 | 2022-10-14 | 中国平安财产保险股份有限公司 | Version labeling method, system, equipment and storage medium in program test |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08179935A (en) * | 1994-12-26 | 1996-07-12 | Nec Corp | Remote program updating system |
| US20030070087A1 (en) * | 2001-10-05 | 2003-04-10 | Dmitry Gryaznov | System and method for automatic updating of multiple anti-virus programs |
| CN1711766A (en) * | 2002-11-14 | 2005-12-21 | Lg电子株式会社 | Electronic document versioning method and updated document supply method using version number based on XML |
| US20060271725A1 (en) * | 2005-05-24 | 2006-11-30 | Micron Technology, Inc. | Version based non-volatile memory translation layer |
| CN101477467A (en) * | 2008-12-08 | 2009-07-08 | 山东浪潮齐鲁软件产业股份有限公司 | Project code releasing method |
| CN101668081A (en) * | 2009-09-24 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and automatic upgrading method thereof |
| CN103123583A (en) * | 2012-12-19 | 2013-05-29 | 深圳市共进电子股份有限公司 | Realizing method for automatically recording software version number |
-
2017
- 2017-11-10 CN CN201711106369.0A patent/CN107832089B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH08179935A (en) * | 1994-12-26 | 1996-07-12 | Nec Corp | Remote program updating system |
| US20030070087A1 (en) * | 2001-10-05 | 2003-04-10 | Dmitry Gryaznov | System and method for automatic updating of multiple anti-virus programs |
| CN1711766A (en) * | 2002-11-14 | 2005-12-21 | Lg电子株式会社 | Electronic document versioning method and updated document supply method using version number based on XML |
| US20060271725A1 (en) * | 2005-05-24 | 2006-11-30 | Micron Technology, Inc. | Version based non-volatile memory translation layer |
| CN101477467A (en) * | 2008-12-08 | 2009-07-08 | 山东浪潮齐鲁软件产业股份有限公司 | Project code releasing method |
| CN101668081A (en) * | 2009-09-24 | 2010-03-10 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal and automatic upgrading method thereof |
| CN103123583A (en) * | 2012-12-19 | 2013-05-29 | 深圳市共进电子股份有限公司 | Realizing method for automatically recording software version number |
Non-Patent Citations (4)
| Title |
|---|
| EOIN CAMPBELL: ""Global Assembly Versioning Strategy & Development Workflows for .NET Assemblies"", 《HTTPS://TRYCATCH.ME/GLOBAL-ASSEMBLY-VERSIONING-STRATEGY-DEVELOPMENT-WORKFLOWS-FOR-NET-ASSEMBLIES/》 * |
| ERIC0803: ""工具——代码中自动生成SVN版本号"", 《HTTPS://WWW.CNBLOGS.COM/SUN-FREDERICK/P/5358496.HTML》 * |
| MINLISON: ""Xcode build版本号自动跟随时间变化脚本"", 《HTTPS://BLOG.CSDN.NET/LIUZHUANSHAONIAN/ARTICLE/DETAILS/51658543》 * |
| TOM FAUST: ""Making Sense of AssemblyVersion Numbers"", 《HTTPS://INTELLITECT.COM/MAKING-SENSE-OF-ASSEMBLYVERSION-NUMBERS/》 * |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111638905A (en) * | 2020-05-12 | 2020-09-08 | 中信百信银行股份有限公司 | Version number generation method and device, electronic equipment and readable storage medium |
| CN115185821A (en) * | 2022-06-22 | 2022-10-14 | 中国平安财产保险股份有限公司 | Version labeling method, system, equipment and storage medium in program test |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107832089B (en) | 2021-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104049978B (en) | A kind of method and system for realizing code visualization editor combination | |
| CN104331285A (en) | Automatic code generation method and system | |
| EP3451206B1 (en) | Method, apparatus, and device for generating a visual model layout of a space | |
| CN107590115A (en) | A kind of Word report automatic generation methods and device | |
| CN109033729B (en) | Product design information management method and system | |
| CN111738607A (en) | A method for compiling electronic equipment process files based on PBOM baseline | |
| CN105976302A (en) | Configurable data comparing method and system | |
| CN106021422A (en) | Relational database-based method and system for forming Hive data warehouse | |
| CN109740223B (en) | Auxiliary drawing method for direct-current power supply system of transformer substation | |
| CN107832089A (en) | A kind of method of updating software version automatically number | |
| CN105447224A (en) | Modelica model simulation analysis report automatic generation method | |
| CN106055582B (en) | A kind of method and device of the table name in replacement data library | |
| CN102946487A (en) | Method and device for managing effectiveness of repeated linkmen | |
| CN109086985B (en) | Professional test information management system for spacecraft assembly | |
| CN109683881A (en) | A kind of code format method of adjustment and device | |
| CN102136013A (en) | Manufacturing step information generating system and generating method thereof | |
| CN109033523A (en) | A kind of Assembly process specification generation System and method for based on three-dimensional CAD model | |
| CN103838459A (en) | Editing method supporting independent revocation and independent reworking on each design | |
| GB0225916D0 (en) | Update resolution procedure for a directory server | |
| CN110119565A (en) | A method of quick association and displaying based on BIM model and project programme | |
| CN107516154A (en) | Data processing method and device for generating production plan | |
| CN103984578B (en) | The update method and device of a kind of cobol program version | |
| CN108268456B (en) | Method for establishing invoice database and method for inquiring invoices in database | |
| CN102855227B (en) | Document processing system and method | |
| CN104967920B (en) | It is a kind of to compile single dissemination method and device |
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 |