CN111324373A - Method and device for uploading multiple project files to code warehouse and computing equipment - Google Patents

Method and device for uploading multiple project files to code warehouse and computing equipment Download PDF

Info

Publication number
CN111324373A
CN111324373A CN201811526278.7A CN201811526278A CN111324373A CN 111324373 A CN111324373 A CN 111324373A CN 201811526278 A CN201811526278 A CN 201811526278A CN 111324373 A CN111324373 A CN 111324373A
Authority
CN
China
Prior art keywords
files
uploading
engineering
project
configuration 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.)
Granted
Application number
CN201811526278.7A
Other languages
Chinese (zh)
Other versions
CN111324373B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811526278.7A priority Critical patent/CN111324373B/en
Publication of CN111324373A publication Critical patent/CN111324373A/en
Application granted granted Critical
Publication of CN111324373B publication Critical patent/CN111324373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for uploading a plurality of engineering files to a code warehouse and computing equipment, wherein the method comprises the following steps: a common configuration file of a plurality of project files is configured in advance; establishing a reference relation between a plurality of project files and a common configuration file; and traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to the code warehouse. The configuration files are shared, workload required for respectively setting the configuration files for the plurality of project files can be reduced, the reference relation is established between the plurality of project files and the shared configuration files, uploading is realized by referring to the shared configuration files during uploading, tedious operation of setting the configuration files in the plurality of project files is avoided, uploading can be completed by directly modifying the shared configuration files during each uploading, and operation is more convenient. Furthermore, the uploading tasks of the engineering files are called in sequence by traversing the engineering files, so that the uploading operation is automatically completed without manual uploading operation.

Description

Method and device for uploading multiple project files to code warehouse and computing equipment
Technical Field
The invention relates to the field of software, in particular to a method and a device for uploading a plurality of engineering files to a code warehouse and computing equipment.
Background
The code warehouse can be used for storing and sorting various code packages, a user can upload own engineering files to be stored in the code warehouse, and the user can also be provided with the code warehouse to download the engineering files so as to share the engineering files. When uploading the project files to the code warehouse, the user needs to configure configuration files such as a path uploaded to the code warehouse, uploaded version information, and code warehouse related login information for each project file. The processing makes the user configure the corresponding configuration file for each project file, and the workload of the user is large.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a method and apparatus, a computing device, and a computer storage medium for uploading a code repository for multiple project files that overcome or at least partially address the above-identified problems.
According to one aspect of the present invention, there is provided a method for uploading a code repository for a plurality of project files, comprising:
a common configuration file of a plurality of project files is configured in advance;
establishing a reference relation between a plurality of project files and a common configuration file;
and traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to the code warehouse.
According to another aspect of the present invention, there is provided an apparatus for uploading a plurality of project files to a code repository, comprising:
the configuration module is suitable for pre-configuring a common configuration file of a plurality of project files;
the reference module is suitable for establishing reference relations between a plurality of project files and a common configuration file;
and the uploading module is suitable for traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files and finishing uploading the plurality of engineering files to the code warehouse.
According to yet another aspect of the present invention, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the method for uploading the engineering files to the code warehouse.
According to still another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform operations corresponding to the method for uploading a code repository by using a plurality of engineering files as described above.
According to the method, the device and the computing equipment for uploading the code warehouse by the plurality of engineering files, a common configuration file of the plurality of engineering files is configured in advance; establishing a reference relation between a plurality of project files and a common configuration file; and traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to the code warehouse. The configuration files are shared, workload required for respectively setting the configuration files for the plurality of project files can be reduced, the reference relation is established between the plurality of project files and the shared configuration files, uploading is realized by referring to the shared configuration files during uploading, tedious operation of setting the configuration files in the plurality of project files is avoided, uploading can be completed by directly modifying the shared configuration files during each uploading, and operation is more convenient. Furthermore, the uploading tasks of the engineering files are called in sequence by traversing the engineering files, the uploading operation is automatically completed, manual uploading operation is not needed, and possible errors of manual operation are avoided.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow diagram of a method for uploading a code repository for a plurality of project files, according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a method for uploading a code repository for a plurality of project files, according to another embodiment of the invention;
FIG. 3 illustrates a functional block diagram of an apparatus for uploading a code repository for a plurality of project files, according to one embodiment of the present invention;
FIG. 4 shows a schematic structural diagram of a computing device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure 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 disclosure to those skilled in the art.
The code warehouse can store the engineering files, and after the engineering files needing to be stored are uploaded to the code warehouse, the code warehouse can also provide other projects with remote access to the stored engineering files. In the present invention, the code repository is described by taking Jcenter as an example, but not limited to Jcenter.
Fig. 1 is a flowchart illustrating a method of uploading a code repository for a plurality of project files according to an embodiment of the present invention. As shown in fig. 1, the method for uploading a code repository by multiple project files specifically includes the following steps:
step S101, a common configuration file of a plurality of project files is configured in advance.
When a project is uploaded to a code warehouse, a special configuration file needs to be configured for the project to meet the requirement of uploading the code warehouse, so that a plurality of configuration files need to be set when the code warehouse is uploaded to a plurality of project files. In order to reduce the workload of setting the configuration file, in this embodiment, a common configuration file is configured in advance, and a plurality of project files can all use the common configuration file, so that the plurality of project files upload the code warehouse.
The shared configuration file comprises code warehouse login related information, code warehouse address information, project file uploading address information, project file version information and the like. The code warehouse login related information comprises a code warehouse login user name, a password, authentication information and the like, and login authentication of the current uploading operation is completed according to the code warehouse login related information when uploading is facilitated. The code repository address information indicates an address of the uploaded code repository, and includes information such as a website address, a Git address (remote code repository address), and the like. The project file uploading address information indicates address information stored in the code warehouse for uploading a plurality of project files. The project file version information records information such as the version number of the project file update. In addition to the above information, the common configuration file may include other configuration information required for uploading the code repository, such as project file group information, project name information, project file type, and the like, according to specific implementation requirements.
Step S102, establishing a reference relation between a plurality of project files and a common configuration file.
When uploading a code warehouse, a plurality of project files are required to be configured with configuration files. Although the common configuration file can be copied to each project file, the configured common configuration file needs to be copied to each project file every time a new version of the project file is uploaded, so that the problems of wrong copying, missing copying and the like are easily caused, and the failure of uploading the code warehouse is caused.
In order to avoid the problem of failure of uploading a code warehouse caused by repeated copy uploading for many times, a reference relationship is established between a plurality of engineering files and a common configuration file. Specifically, the plurality of project files are traversed, and path information of the common configuration file is added to each project file in sequence to establish a reference relationship between the plurality of project files and the common configuration file. Namely, when the code warehouse is accessed at the upper level, the project files are referenced to the common configuration files according to the path information of the common configuration files, and the actual common configuration files do not need to be saved under the path of each project file. In the step, after the reference relationship between the plurality of engineering files and the common configuration file is established for the first time, if the path of the common configuration file is not changed, the code warehouse is uploaded every time, the common configuration file can be modified, and the re-uploading can be completed, so that the workload required by the uploading is greatly reduced.
Further, the step can be automatically executed through a preset script file, the preset script file traverses a plurality of project files, and the path information of the shared configuration file is added into the plurality of project files, so that the establishment of the reference relationship between the plurality of project files and the shared configuration file is completed.
And step S103, traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to a code warehouse.
The path information of the plurality of project files can be acquired by reading a project list containing the path information of the plurality of project files. And traversing the plurality of engineering files in sequence according to the path information of the plurality of engineering files to find out specific engineering files, calling the uploading task of each engineering file and finishing uploading the plurality of engineering files to the code warehouse. When the uploading task of the engineering files is called, the engineering files and the shared configuration files are in a reference relationship, and the shared configuration files do not exist under the path where the engineering files are located, so that the information of the shared configuration files needs to be read according to the reference relationship between the engineering files and the shared configuration files. And finishing operations such as login verification of the code warehouse by using the read information in the common configuration file, so that the plurality of engineering files are uploaded to the code warehouse.
Further, the step can be automatically executed through a preset script file, the preset script file reads the project list, the plurality of project files are traversed, the uploading tasks of the plurality of project files are sequentially called, and the plurality of project files are uploaded to the code warehouse.
In the embodiment, all steps of the method are executed in series through the preset script file, so that the code warehouse for uploading a plurality of engineering files is automatically completed, and the workload of manually uploading the plurality of engineering files is reduced.
According to the method for uploading the code warehouse by the plurality of project files, provided by the invention, the common configuration file of the plurality of project files is configured in advance; establishing a reference relation between a plurality of project files and a common configuration file; and traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to the code warehouse. The configuration files are shared, workload required for respectively setting the configuration files for the plurality of project files can be reduced, the reference relation is established between the plurality of project files and the shared configuration files, uploading is realized by referring to the shared configuration files during uploading, tedious operation of setting the configuration files in the plurality of project files is avoided, uploading can be completed by directly modifying the shared configuration files during each uploading, and operation is more convenient. Furthermore, the uploading tasks of the engineering files are called in sequence by traversing the engineering files, the uploading operation is automatically completed, manual uploading operation is not needed, and possible errors of manual operation are avoided.
Fig. 2 is a flowchart illustrating a method of uploading a code repository for a plurality of project files according to another embodiment of the present invention. As shown in fig. 2, the method for uploading a code repository by multiple project files specifically includes the following steps:
in step S201, a common configuration file of a plurality of project files is configured in advance.
In order to conveniently and automatically upload a plurality of project files to the code warehouse and automatically upload the project files to the code warehouse after updating versions of the project files each time, the shared configuration file can preset information irrelevant to the project files and the updating versions of the project files, such as code warehouse login related information, code warehouse address information and the like, and the information can be suitable for uploading different project files and is also irrelevant to version information of the project files.
For information relating to the project file itself and the updated version of the project file, information required in the common configuration file may be automatically set by the information of the project file itself.
Step S202, according to the names of the engineering files, old version information of the engineering files uploaded in the code warehouse is searched.
Step S203, the old version information of the engineering file is subjected to version upgrading processing to obtain the version information of the engineering file sharing the configuration file.
The project file version information may be set according to a history that the project files have been uploaded to the code repository. Specifically, according to the names of a plurality of project files to be uploaded, the uploaded project files in the code warehouse, which are consistent with the names of the project files, are searched, and the information of the old versions of the project files is obtained. And according to the specific rule of the update version of the engineering file, performing version upgrading treatment on the old version information of the engineering file to obtain the version information of the engineering file of the shared configuration file. If the old version information of the engineering file is 2.3.0, the version information of the engineering file of the shared configuration file is 2.3.1 after the version upgrading processing is carried out. By performing this step, the project file version information of the common configuration file can be automatically obtained without manual configuration by a user.
And step S204, searching the uploaded address information of the engineering files uploaded by the code warehouse according to the names of the engineering files.
Step S205, obtaining the project file uploading address information of the shared configuration file according to the uploaded project file uploading address information.
The uploading address information of the engineering files can be set according to the history that the engineering files are uploaded to the code warehouse. Specifically, according to names of a plurality of project files to be uploaded, uploaded project files consistent with the names of the project files in the code warehouse are searched, and uploaded project file uploading address information is obtained. And taking the uploaded project file uploading address information as the project file uploading address information of the shared configuration file, so that the new project file uploaded again can cover the previous project file. By executing the step, the project file uploading address information of the common configuration file can be automatically obtained without manual configuration of a user.
In this embodiment, after information irrelevant to the project file itself and the update version of the project file in the common configuration file is set once, the common configuration file may be applicable to upload of any plurality of project files, is not affected by upload addresses and versions of any project files, and may be reused. The problem that the common configuration file needs to be repeatedly modified due to different uploading address information, version updating and the like of the engineering file is solved, and the modification workload is reduced. Before uploading, the uploading address information of the engineering files is automatically searched and positioned and the version information of the engineering files is automatically updated according to the names of the engineering files, so that the workload in the whole uploading process is reduced, the personnel cost is saved, the uploading processing efficiency is improved, and the method is quicker and more convenient.
The execution sequence of steps S202 and S203 and steps S204 and S205 is not limited, and steps S202 and S203 may be executed first, and then steps S204 and S205 may be executed, or steps S204 and S205 may be executed first, and then steps S202 and S203 may be executed.
Step S206, establishing the reference relation between the plurality of project files and the common configuration file.
Step S207, traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing uploading the plurality of engineering files to the code warehouse.
The above steps can refer to the descriptions of steps S102-S103 in the embodiment of fig. 1, and are not described herein again. It should be noted that, here, the uploading task may be manually added to the multiple engineering files, and more preferably, after the engineering files are determined according to the path information of the multiple engineering files, the uploading task is automatically added to each engineering file, and then the uploading tasks of the multiple engineering files are sequentially called to complete the uploading of the multiple engineering files to the code warehouse, so that the workload of the whole method is further reduced, and the personnel cost is saved.
According to the method for uploading the code warehouse by the multiple engineering files, provided by the invention, information irrelevant to the engineering files and the updated versions of the engineering files is configured in the common configuration file, and before uploading, the uploading address information of the engineering files and the version information of the updated engineering files are automatically searched and positioned by the names of the engineering files, so that the common configuration file can be suitable for uploading any multiple engineering files, is not influenced by the uploading addresses and versions of any engineering files, and can be repeatedly used. The problem that the common configuration file needs to be repeatedly modified due to different uploading address information, version updating and the like of the engineering file is solved, the modification workload is reduced, the personnel cost is saved, the uploading processing efficiency is improved, and the method is quicker and more convenient.
Fig. 3 illustrates a functional block diagram of an apparatus for uploading a code repository for a plurality of project files according to an embodiment of the present invention. As shown in fig. 3, the apparatus for uploading a plurality of project files to a code repository includes the following modules:
the configuration module 310 is adapted to: a common configuration file of a plurality of project files is configured in advance.
The referencing module 320 is adapted to: and establishing a reference relation between a plurality of project files and a common configuration file.
The upload module 330 is adapted to: and traversing the plurality of engineering files, sequentially calling the uploading tasks of the plurality of engineering files, and completing the uploading of the plurality of engineering files to the code warehouse.
Optionally, the reference module 320 is further adapted to: and traversing the plurality of engineering files, and sequentially adding path information of the shared configuration file into each engineering file to establish a reference relationship between the plurality of engineering files and the shared configuration file.
Optionally, the configuration module 310 further comprises: a version module 311.
The version module 311 is adapted to: searching the old version information of the engineering files uploaded in the code warehouse according to the names of the engineering files; and performing version upgrading processing on the old version information of the engineering file to obtain the version information of the engineering file sharing the configuration file.
Optionally, the configuration module 310 further comprises: an address module 312.
The address module 312 is adapted to: searching uploaded engineering file uploading address information of the code warehouse according to the names of the engineering files; and obtaining the uploading address information of the engineering files sharing the configuration files according to the uploading address information of the uploaded engineering files.
Optionally, the uploading module 330 is further adapted to: reading a project list containing path information of a plurality of project files; and traversing the plurality of engineering files in sequence according to the acquired path information of the plurality of engineering files, calling the uploading task of the plurality of engineering files, and finishing uploading the plurality of engineering files to a code warehouse.
Optionally, the uploading module 330 is further adapted to: calling the uploading tasks of the plurality of engineering files, and reading the shared configuration file according to the reference relation between the plurality of engineering files and the shared configuration file; and according to the common configuration file, login verification of the code warehouse is realized, and uploading of a plurality of engineering files to the code warehouse is completed.
The descriptions of the modules refer to the corresponding descriptions in the method embodiments, and are not repeated herein.
The present application further provides a non-volatile computer storage medium, where at least one executable instruction is stored in the computer storage medium, and the computer executable instruction may execute the method for uploading a code repository by multiple engineering files in any of the above method embodiments.
Fig. 4 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 4, the computing device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein:
the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408.
A communication interface 404 for communicating with network elements of other devices, such as clients or other servers.
The processor 402 is configured to execute the program 410, and may specifically execute the relevant steps in the above method embodiment of uploading a code repository for a plurality of project files.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU, or an application specific Integrated circuit asic, or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may be specifically configured to cause the processor 402 to execute the method for uploading a code repository for a plurality of project files in any of the method embodiments described above. For specific implementation of each step in the program 410, reference may be made to corresponding steps and corresponding descriptions in units in the above embodiments of uploading a plurality of engineering files to a code repository, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the apparatus for uploading a plurality of engineering files to a code repository according to an embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. a method of uploading a code repository for a plurality of project files, comprising:
a common configuration file of a plurality of project files is configured in advance;
establishing a reference relation between the plurality of project files and the common configuration file;
and traversing a plurality of engineering files, sequentially calling the uploading tasks of the engineering files, and completing the uploading of the engineering files to a code warehouse.
A2. The method of a1, wherein the establishing the reference relationship between the plurality of project files and the common configuration file further comprises:
and traversing a plurality of engineering files, and sequentially adding the path information of the common configuration file into each engineering file to establish the reference relationship between the plurality of engineering files and the common configuration file.
A3. The method of a1, wherein the pre-configuring a common configuration file for a plurality of project files further comprises:
searching the old version information of the engineering files uploaded in the code warehouse according to the names of the engineering files;
and performing version upgrading processing on the old version information of the engineering file to obtain the version information of the engineering file sharing the configuration file.
A4. The method of a1, wherein the pre-configuring a common configuration file for a plurality of project files further comprises: :
searching uploaded engineering file uploading address information of the code warehouse according to the names of the engineering files;
and obtaining the uploading address information of the engineering files sharing the configuration files according to the uploading address information of the uploaded engineering files.
A5. The method of a1, wherein traversing the plurality of engineering files, invoking upload tasks of the plurality of engineering files in sequence, and completing upload of the plurality of engineering files to the code repository further comprises:
reading a project list containing path information of a plurality of project files;
and traversing a plurality of engineering files in sequence according to the acquired path information of the plurality of engineering files, calling the uploading tasks of the plurality of engineering files, and finishing uploading the plurality of engineering files to a code warehouse.
A6. The method of a5, wherein the invoking the task of uploading the plurality of engineering files to complete the uploading of the plurality of engineering files to the code repository further comprises:
calling the uploading tasks of the plurality of engineering files, and reading the common configuration file according to the reference relation between the plurality of engineering files and the common configuration file;
and according to the common configuration file, realizing login verification of the code warehouse and completing uploading of a plurality of engineering files to the code warehouse.
A7. The method of any of a1-a6, wherein the common configuration file contains code warehouse login related information, code warehouse address information, project file upload address information, and/or project file version information.
The invention also discloses: B8. an apparatus for uploading a code repository for a plurality of project files, comprising:
the configuration module is suitable for pre-configuring a common configuration file of a plurality of project files;
the reference module is suitable for establishing a reference relation between the plurality of project files and the common configuration file;
and the uploading module is suitable for traversing a plurality of engineering files, sequentially calling the uploading tasks of the engineering files and finishing uploading the engineering files to the code warehouse.
B9. The apparatus of B8, wherein the reference module is further adapted to:
and traversing a plurality of engineering files, and sequentially adding the path information of the common configuration file into each engineering file to establish the reference relationship between the plurality of engineering files and the common configuration file.
B10. The apparatus of B8, wherein the configuration module further comprises:
the version module is suitable for searching the old version information of the engineering files uploaded in the code warehouse according to the names of the engineering files; and performing version upgrading processing on the old version information of the engineering file to obtain the version information of the engineering file sharing the configuration file.
B11. The apparatus of B8, wherein the configuration module further comprises:
the address module is suitable for searching the uploaded address information of the engineering files uploaded by the code warehouse according to the names of the engineering files; and obtaining the uploading address information of the engineering files sharing the configuration files according to the uploading address information of the uploaded engineering files.
B12. The apparatus of B8, wherein the upload module is further adapted to:
reading a project list containing path information of a plurality of project files; and traversing a plurality of engineering files in sequence according to the acquired path information of the plurality of engineering files, calling the uploading tasks of the plurality of engineering files, and finishing uploading the plurality of engineering files to a code warehouse.
B13. The apparatus of B12, wherein the upload module is further adapted to:
calling the uploading tasks of the plurality of engineering files, and reading the common configuration file according to the reference relation between the plurality of engineering files and the common configuration file; and according to the common configuration file, realizing login verification of the code warehouse and completing uploading of a plurality of engineering files to the code warehouse.
B14. The apparatus of any of B8-B13, wherein the common configuration file contains code warehouse login related information, code warehouse address information, project file upload address information, and/or project file version information.
The invention also discloses: C15. a computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the corresponding operation of the method for uploading the code warehouse by the plurality of project files according to any one of A1-A7.
The invention also discloses: D16. a computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the method of uploading a code repository for a plurality of project files as described in any one of a1-a 7.

Claims (10)

1. A method of uploading a code repository for a plurality of project files, comprising:
a common configuration file of a plurality of project files is configured in advance;
establishing a reference relation between the plurality of project files and the common configuration file;
and traversing a plurality of engineering files, sequentially calling the uploading tasks of the engineering files, and completing the uploading of the engineering files to a code warehouse.
2. The method of claim 1, wherein the establishing a reference relationship of the plurality of project files to the common configuration file further comprises:
and traversing a plurality of engineering files, and sequentially adding the path information of the common configuration file into each engineering file to establish the reference relationship between the plurality of engineering files and the common configuration file.
3. The method of claim 1, wherein said pre-configuring a common configuration file of a plurality of project files further comprises:
searching the old version information of the engineering files uploaded in the code warehouse according to the names of the engineering files;
and performing version upgrading processing on the old version information of the engineering file to obtain the version information of the engineering file sharing the configuration file.
4. The method of claim 1, wherein said pre-configuring a common configuration file of a plurality of project files further comprises: :
searching uploaded engineering file uploading address information of the code warehouse according to the names of the engineering files;
and obtaining the uploading address information of the engineering files sharing the configuration files according to the uploading address information of the uploaded engineering files.
5. The method of claim 1, wherein traversing the plurality of engineering files, invoking upload tasks of the plurality of engineering files in sequence, and completing upload of the plurality of engineering files to the code repository further comprises:
reading a project list containing path information of a plurality of project files;
and traversing a plurality of engineering files in sequence according to the acquired path information of the plurality of engineering files, calling the uploading tasks of the plurality of engineering files, and finishing uploading the plurality of engineering files to a code warehouse.
6. The method of claim 5, wherein said invoking the upload task of the plurality of engineering files, completing the upload of the plurality of engineering files to the code repository further comprises:
calling the uploading tasks of the plurality of engineering files, and reading the common configuration file according to the reference relation between the plurality of engineering files and the common configuration file;
and according to the common configuration file, realizing login verification of the code warehouse and completing uploading of a plurality of engineering files to the code warehouse.
7. The method of any of claims 1-6, wherein the common configuration file contains code warehouse login related information, code warehouse address information, project file upload address information, and/or project file version information.
8. An apparatus for uploading a code repository for a plurality of project files, comprising:
the configuration module is suitable for pre-configuring a common configuration file of a plurality of project files;
the reference module is suitable for establishing a reference relation between the plurality of project files and the common configuration file;
and the uploading module is suitable for traversing a plurality of engineering files, sequentially calling the uploading tasks of the engineering files and finishing uploading the engineering files to the code warehouse.
9. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the method for uploading the code warehouse by the engineering files according to any one of claims 1 to 7.
10. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the method of uploading a code repository from a plurality of project files according to any of claims 1-7.
CN201811526278.7A 2018-12-13 2018-12-13 Method and device for sub-coding warehouse on multiple engineering files and computing equipment Active CN111324373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811526278.7A CN111324373B (en) 2018-12-13 2018-12-13 Method and device for sub-coding warehouse on multiple engineering files and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811526278.7A CN111324373B (en) 2018-12-13 2018-12-13 Method and device for sub-coding warehouse on multiple engineering files and computing equipment

Publications (2)

Publication Number Publication Date
CN111324373A true CN111324373A (en) 2020-06-23
CN111324373B CN111324373B (en) 2023-12-05

Family

ID=71162898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811526278.7A Active CN111324373B (en) 2018-12-13 2018-12-13 Method and device for sub-coding warehouse on multiple engineering files and computing equipment

Country Status (1)

Country Link
CN (1) CN111324373B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268288A (en) * 2021-07-19 2021-08-17 天聚地合(苏州)数据股份有限公司 Shared file configuration method and device
CN113282541A (en) * 2021-06-04 2021-08-20 网易(杭州)网络有限公司 File calling method and device and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011126507A1 (en) * 2010-04-07 2011-10-13 Apple Inc. Apparatus and method for matching users for online sessions
CN105653253A (en) * 2014-12-02 2016-06-08 中兴通讯股份有限公司 Method and device for centralized configuration
CN105760168A (en) * 2016-02-23 2016-07-13 深圳竹信科技有限公司 Automatic code file generation method and system
WO2017071494A1 (en) * 2015-10-26 2017-05-04 阿里巴巴集团控股有限公司 Application deployment method and apparatus
CN107122203A (en) * 2017-03-20 2017-09-01 武汉斗鱼网络科技有限公司 The method to set up and device of a kind of configuration file
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN107357571A (en) * 2017-06-20 2017-11-17 珠海格力电器股份有限公司 Maintaining method, system and the component server of apparatus assembly program
CN107579865A (en) * 2017-10-18 2018-01-12 北京奇虎科技有限公司 Right management method, the apparatus and system of distributed code server
US9875097B2 (en) * 2015-02-25 2018-01-23 Red Hat, Inc. Applying configuration alignment in build projects
CN107656734A (en) * 2017-08-21 2018-02-02 北京北信源软件股份有限公司 Update method, system, computer-readable recording medium and the storage control of code release information
CN107729031A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Code administration method, apparatus, computer equipment and computer-readable recording medium
CN108563435A (en) * 2018-04-19 2018-09-21 北京百度网讯科技有限公司 The method and device of code building

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011126507A1 (en) * 2010-04-07 2011-10-13 Apple Inc. Apparatus and method for matching users for online sessions
CN105653253A (en) * 2014-12-02 2016-06-08 中兴通讯股份有限公司 Method and device for centralized configuration
US9875097B2 (en) * 2015-02-25 2018-01-23 Red Hat, Inc. Applying configuration alignment in build projects
WO2017071494A1 (en) * 2015-10-26 2017-05-04 阿里巴巴集团控股有限公司 Application deployment method and apparatus
CN105760168A (en) * 2016-02-23 2016-07-13 深圳竹信科技有限公司 Automatic code file generation method and system
CN107122203A (en) * 2017-03-20 2017-09-01 武汉斗鱼网络科技有限公司 The method to set up and device of a kind of configuration file
CN107291458A (en) * 2017-06-06 2017-10-24 北京知道创宇信息技术有限公司 A kind of plug-in unit construction method, system and the server of Web applications
CN107357571A (en) * 2017-06-20 2017-11-17 珠海格力电器股份有限公司 Maintaining method, system and the component server of apparatus assembly program
CN107656734A (en) * 2017-08-21 2018-02-02 北京北信源软件股份有限公司 Update method, system, computer-readable recording medium and the storage control of code release information
CN107729031A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Code administration method, apparatus, computer equipment and computer-readable recording medium
CN107579865A (en) * 2017-10-18 2018-01-12 北京奇虎科技有限公司 Right management method, the apparatus and system of distributed code server
CN108563435A (en) * 2018-04-19 2018-09-21 北京百度网讯科技有限公司 The method and device of code building

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
INOVATION_SKY: "Gradle中使用maven-publish插件将本地的jar包批量上传至maven中央库", pages 1 - 2, Retrieved from the Internet <URL:《https://blog.csdn.net/melody_susan/article/details/80861345》> *
KEEP_FIGHTERLS: "如何建立本地共享的代码托管仓库", pages 1 - 7, Retrieved from the Internet <URL:《https://www.jianshu.com/p/27a5981b05ee?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation》> *
XIN YANG 等: "Mining the Modern Code Review Repositories: A Dataset of People, Process and Product", 《2016 IEEE/ACM 13TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES》, pages 460 - 463 *
ZHOU331190780: "批量上传jar包到maven私服", pages 1 - 2, Retrieved from the Internet <URL:《https://blog.csdn.net/zhou331190780/article/details/80802802》> *
张婧茹: "基于PaaS的容器引擎管理平台的设计及实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 139 - 407 *
硅谷工具人: "eclipse多个项目保存到gitee上一个仓库中", pages 1 - 6, Retrieved from the Internet <URL:《https://www.cnblogs.com/30go/p/10038696.html》> *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282541A (en) * 2021-06-04 2021-08-20 网易(杭州)网络有限公司 File calling method and device and electronic equipment
CN113282541B (en) * 2021-06-04 2023-08-11 网易(杭州)网络有限公司 File calling method and device and electronic equipment
CN113268288A (en) * 2021-07-19 2021-08-17 天聚地合(苏州)数据股份有限公司 Shared file configuration method and device

Also Published As

Publication number Publication date
CN111324373B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN111782339B (en) Container creation method and device, electronic equipment and storage medium
JP2021500658A (en) Computer implementation methods, systems, and computer program products that perform interactive workflows, as well as computer programs.
CN112488855B (en) Business verification method and device based on rule template
US9542173B2 (en) Dependency handling for software extensions
CN111124480B (en) Method and device for generating application program package, electronic equipment and storage medium
CN110941440A (en) Batch updating method, device and equipment for virtual machines and readable storage medium
CN111324373A (en) Method and device for uploading multiple project files to code warehouse and computing equipment
US10929279B2 (en) Systems and method for automated testing framework for service portal catalog
US11544050B1 (en) Software patch automation
US20110264903A1 (en) Electronic device and method for loading configuration files using the same
US9760364B2 (en) Checks for software extensions
CN110187890B (en) Project deployment method, electronic equipment and storage medium
US11347533B2 (en) Enhanced virtual machine image management system
CN116775061A (en) Deployment method, device, equipment and storage medium of micro-service application
CN111124545A (en) Application program starting method and device, electronic equipment and storage medium
CN108052335B (en) Data management method and device, computing equipment and storage medium
CN115794690A (en) Processing method and device based on external equipment in server
CN115794220A (en) Software source migration method, device and system, computing device and readable storage medium
CN112035432B (en) Data replacement migration method and device and computer equipment
CN112328288A (en) Method, system, equipment and storage medium for updating server component
US20160232595A1 (en) Methods, systems, and computer readable media for processing an order with a start-start dependency
CN112015436A (en) Short message platform deployment method and device, computing equipment and computer storage medium
CN110597549A (en) Searching method, device and equipment in code engineering and readable storage medium
US9477447B1 (en) Semantic representations of software extensions
US20240037017A1 (en) Verification of core file debugging resources

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