Software development environment construction method and system, electronic equipment and medium
By generating script files and making images, the traditional manual deployment method is solved, and the problem of time-consuming and easy introduction of errors is achieved, and the automated construction and deployment of the software development environment is realized, and development efficiency and flexibility are improved.
Patent Information
- Application Number
- CN202411769427.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-21
AI Technical Summary
Traditional manual software development environment deployment methods are time-consuming, error-inducing and difficult to flexibly respond to rapidly changing development and testing needs.
By generating script files, build a development environment consistent with the basic environment template, create images and deploy them to different development links, compile and package the source code to be released, and finally push it to the matching application server.
It improves software development efficiency, reduces the chance of manual operation errors, supports switching and updates in different environments, adapts to the needs of frequent changes and iterations in agile development, and improves the response speed and flexibility of the development team.
Smart Images

Figure CN119668563A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer software engineering, and in particular to a method, system, electronic equipment and medium for constructing a software development environment. Background Art
[0002] In the process of building a software development environment, the traditional manual deployment method faces significant limitations. This method is not only time-consuming and prone to errors, but also difficult to flexibly respond to rapidly changing development and testing requirements.
[0003] With the evolution of software development methods, the agile development model has gradually become the mainstream. Under the agile development framework, the development and delivery process of enterprise applications covers multiple key links from code writing to deployment. For software development, each software project has its own unique R&D environment requirements. In the iterative process of agile development, the same software project may also continuously replace or upgrade its R&D basic environment according to its own development needs. This dynamically changing environmental requirement puts forward higher flexibility and intelligence requirements for the construction of the software development environment. Summary of the invention
[0004] In view of this, the present invention provides a method, system, electronic device and medium for constructing a software development environment, aiming to improve software development efficiency, reduce human errors, and better adapt to changing development and testing requirements.
[0005] On the one hand, the present invention provides a method for constructing a software development environment, comprising: generating a script file required for the software development environment, the script file being used to build a development environment consistent with a basic environment template; making an image based on the script file, and deploying the image to different development links of the software development environment; in the image, compiling and packaging the source code to be released that has been checked to be correct to obtain a software package to be released; and when the software package to be released matches the environment of an application server, pushing the software package to be released to the application server.
[0006] According to an embodiment of the present invention, generating a script file required for a software development environment includes: generating a software script part and a hardware script part in a specific code repository, configuration item or file system to obtain a script file.
[0007] According to an embodiment of the present invention, generating the software script part includes: generating a software content acquisition script and a software configuration script, wherein the software content acquisition script contains the basic software operating environment and general software information, and the software configuration script allows the generated image to be switched between different versions.
[0008] According to an embodiment of the present invention, making an image based on a script file includes: using at least one of a virtual machine, open source cloud platform technology, aggregation technology or container technology to process different script contents of the script file to complete the image making.
[0009] According to the embodiment of the present invention, after the image is created, the method further includes: using a visual graphical interface tool to perform process management on the image.
[0010] According to an embodiment of the present invention, in the image, the source code to be released that has been checked to be correct is compiled and packaged, and before obtaining the software package to be released, it includes: performing code standardization and security detection on the source code to be released, and if the source code to be released does not meet the preset quality requirements, correcting the source code at the code submission level until the source code to be released meets the preset quality requirements.
[0011] According to an embodiment of the present invention, in the image, after the source code to be released is checked and packaged to obtain the software package to be released, the following steps are included: marking the feature information of the software package to be released; and temporarily storing the marked source code to be released in the software product warehouse.
[0012] On the other hand, the present invention provides a software development environment construction system, including: a script generation module, which is used to generate script files required for the software development environment, and the script files are used to build a development environment consistent with a basic environment template; an image production module, which is used to produce images based on the script files to be deployed to different development links of the software development environment; a compilation and packaging module, which is used to compile and package the source code to be released that has been checked to be correct in the image to obtain a software package to be released; and a push module, which is used to detect whether the software package to be released and the application server match, and if they match, push the software package to be released to the application server.
[0013] Yet another aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute any one of the methods in the above embodiments.
[0014] Another aspect of the present invention provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute a method according to any one of the above embodiments.
[0015] The software development environment construction method, system, electronic device and medium provided by the embodiment of the present invention build a development environment consistent with the basic environment template by generating a script file, which can reduce the probability of manual operation errors while improving efficiency, and support the switching and environment update of different environments. By generating images through script files, the automatic construction and deployment of the software development environment can be realized, which not only reduces the burden of manual operation, but also improves the intelligent level of environment construction, so that the development team can focus more on the code itself, rather than the environment configuration. At the same time, the deployment method based on the image makes it easy for the software development environment to migrate and expand between different development links. This adapts to the needs of frequent changes and iterations in agile development and improves the response speed and flexibility of the development team. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0017] Figure 1 A flowchart schematically shows a method for constructing a software development environment according to an embodiment of the present invention;
[0018] Figure 2 A flowchart schematically shows a method for constructing a software development environment according to another embodiment of the present invention;
[0019] Figure 3 Schematically shows a block diagram of a software development environment construction system according to an embodiment of the present invention;
[0020] Figure 4 A block diagram of an electronic device suitable for implementing a method for building a software development environment according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0021] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0023] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0024] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0025] It should be noted that in the embodiments of the present invention, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present invention, but it does not mean that the applicant has or will necessarily use the solution.
[0026] like Figure 1 As shown, the software development environment construction method may include operations S110 to S140.
[0027] In operation S110, a script file required for a software development environment is generated, and the script file is used to build a development environment consistent with a basic environment template.
[0028] In software development and operation and maintenance, scripts can be used for automated construction, testing, deployment, and monitoring of software development environments. Scripts can be written in any programming language, such as Shell, Python, Perl, etc., as long as they can perform the required tasks, and the present invention does not make specific limitations.
[0029] A basic environment template is a preconfigured environment setting that can include hardware and software templates, which contain the basic components and configurations required to build and run software applications, such as operating systems, middleware, development tools, configuration files, and dependency libraries. The basic environment template simplifies the environment building process and ensures that all developers work in a consistent environment, thereby improving development efficiency and reducing errors.
[0030] In operation S120, an image is created based on the script file, and the image is deployed to different development links in the software development environment.
[0031] Different virtualization technologies can be used to create images. Different virtualization technologies correspond to different script contents. The platform basic script content can be shared and separated from the software script content. Different development links can cover the code writing to deployment in software development, and can include multiple important links such as code version management, code quality inspection, code compilation and packaging, and software package product version management. In this way, the consistency of the environment in each link can be guaranteed.
[0032] In operation S130 , the source code to be released that has been checked to be correct is compiled and packaged in the image to obtain a software package to be released.
[0033] As an example, the source code to be released can be pulled into the image through a version control system such as Git, or the source code file can be transferred to the image through other means (such as FTP, SCP, etc.). The image used can contain all the dependencies and tools required for compilation and packaging to achieve the compilation and packaging of the source code. As an example, if the source code is written in a specific language, such as Java, Python, Go, etc., the compiler, build tools (such as Maven, Gradle, Go Build, etc.) and necessary library files of the corresponding language are installed in the image.
[0034] In operation S140 , when the software package to be published matches the environment of the application server, the software package to be published is pushed to the application server.
[0035] The above embodiment builds a development environment consistent with the basic environment template by generating a script file, which can improve efficiency while reducing the probability of manual operation errors and supporting the switching and environment update of different environments. By generating an image through a script file, the automatic construction and deployment of the software development environment can be realized, which not only reduces the burden of manual operation, but also improves the intelligent level of environment construction, so that the development team can focus more on the code itself, rather than the environment configuration. At the same time, the deployment method based on the image makes it easy for the software development environment to migrate and expand between different development links. This adapts to the needs of frequent changes and iterations in agile development, and improves the response speed and flexibility of the development team. The source code that has been checked correctly is compiled and packaged in the image to ensure the quality of the software package to be released. At the same time, by pushing the software package to the application server that matches the application server environment, the reliability and security of software deployment are further improved.
[0036] Please continue reading Figure 1 Based on the above embodiments, generating the script file required for the software development environment may include: generating a software script part and a hardware script part in a specific code repository, configuration item or file system to obtain a script file.
[0037] In other words, the script file can contain a software script part and a hardware script part. The hardware script part varies according to different management platforms. It can be used on platforms that support automatic filling of customized hardware information. If it does not support it, the hardware information can be filled in manually when the virtual platform is generated. The software script part involves the acquisition, installation and configuration of the required software, which will be further explained later.
[0038] The following is a simple example script for the hardware part. Its purpose is to create a virtual machine disk image and upload it to the Glance component of the OpenStack cloud platform. It can be implemented using QEMU-IMG. The script code can be as follows:
[0039]
[0040] The following is a simple example script for the software, which aims to automatically install a specific version of Python on different Linux distributions. The script code can be as follows:
[0041]
[0042] It is worth mentioning that in order to ensure that the software development environment can be built normally in complex scenarios and reduce the impact of network problems, the installation package required by the software part can specify an internal dedicated software library, and at the same time ensure that the script has execution permissions.
[0043] In some embodiments, generating the software script part may include: generating a software content acquisition script and a software configuration script, wherein the software content acquisition script contains a basic software operating environment and general software information, and the software configuration script allows the generated image to be switched between different versions.
[0044] In other words, the script content of the software may include the acquisition and configuration of the software, and the content of the acquired software includes the basic software operating environment, such as Java Runtime Environment, Python, etc. It may also include some general software, such as databases, file systems, etc.
[0045] After the software is acquired, the software configuration involves different software, and different configurations can be made according to the needs. Some software supports switching between different versions, such as the Java environment, which can be integrated into the script. For example, multiple versions of Java can be installed through alternatives, and multi-version switching can be configured. The generated image can be switched between different versions, eliminating the need to regenerate the image for different versions of the environment. For some software that requires customization of special user permissions, you can classify them according to the permissions involved, customize unified scripts and services, put software with sufficiently high similarity together, generate a unified image, or customize services according to user permission information, and install software with special permission requirements under a unified user or user group.
[0046] On the basis of the above embodiments, based on the script file, making an image may include: using different technologies such as traditional virtual machines, open source cloud platform technologies such as OpenStack, aggregation technologies, or docker container technologies, processing different script contents of the script file to complete the image making. In this embodiment, different virtual technologies may correspond to different script contents. The platform basic script content may be shared and may be separated from the software script content.
[0047] On the basis of the above embodiment, after making the image, the creation method may further include: using a visual graphical interface tool to manage the image process. In this embodiment, in the process of creating the software development environment, calls between multiple systems are involved. Using an independent system with a visual graphical interface to manage the process can display the process more intuitively. The software environment used by different images and the configurable information can be intuitively seen, which facilitates the customized push update of the software package to be released.
[0048] On the basis of the above embodiment, in the image, the source code to be released that has been checked to be correct is compiled and packaged, and before obtaining the software package to be released, it includes: performing code standard and security detection on the source code to be released, and if the source code to be released does not meet the preset quality requirements, correcting the source code at the code submission level until the source code to be released meets the preset quality requirements.
[0049] In this step, after obtaining the source code, the code can be tested. Mature technologies on the market can be used to perform basic checks on the code's standardization, security and other indicators. Optionally, if it is determined that the quality inspection results do not meet the preset quality requirements, the compilation and packaging process of the source code to be released will be cancelled. This part of the content can also be moved to the code submission level according to actual development needs, so that this unit will not involve code detection.
[0050] The compilation and packaging service can use a specific compilation and packaging environment. The specific environment can use the image generated by this method. The compilation and packaging environment can also be unified into the image management service.
[0051] On the basis of the above embodiment, in the image, the source code to be released that has been checked to be correct is compiled and packaged to obtain the software package to be released, which includes: marking the feature information of the software package to be released; temporarily storing the marked source code to be released in the software product warehouse. After marking, the software to be released in the warehouse can be submitted and pushed to the corresponding service, and the software can be enabled in the corresponding service.
[0052] As an example, the software related information tag may be as follows:
[0053] {
[0054] “language”: “Java”,
[0055] "version": 1.8.136,
[0056] "size":19557557,
[0057] "port":8003,
[0058] …
[0059] }
[0060] In this step, a software check is required before pushing. According to the relevant information marked by the software package involved above, check and determine whether the software operating environment is the same as the service environment being pushed. If different, check whether they are compatible. If not, stop pushing and return an error message. If compatible or the relevant information is consistent, push and start.
[0061] The following is an example of the returned information:
[0062] {
[0063] "code":400,
[0064] “msg”:”Push failed, please check the software version”,
[0065] "errorTag":"version"
[0066] }
[0067] In software development, integration is a process where unknown errors are likely to occur. For agile development, continuous integration is essential in development, and multiple tests allow problems to be exposed and solved as early as possible. The present invention can expose problems as early as possible through continuous integration, thereby reducing the difficulty of solving the problems.
[0068] Figure 2 A flowchart of a method for constructing a software development environment according to another embodiment of the present invention is schematically shown. This embodiment is formed based on the above-mentioned multiple embodiments.
[0069] In this embodiment, first, a script file for generating an image can be generated or pulled out, and then the image is generated according to the script. Before compiling and packaging the source code in the image, the source code file is first checked for code. If the check is correct, the software information can be packaged and marked. Before pushing the packaged software, the software and environment can be confirmed first. If the confirmation is correct, it can be pushed to the target service. The details of the entire step have been explained in the previous text, so I will not repeat them here.
[0070] This software development environment construction method can provide a one-click deployment function, and can preset initial images and automated deployment scripts for different environments. Only a small amount of necessary information needs to be entered to automatically complete the entire process of image creation, script pulling, preset environment deployment, code pulling, compiling, packaging, and pushing to deployment. This method can use automated tools to provide basic checks for the code before software integration and deployment, so that the system can automatically identify the hardware and operating system environment, automatically select and configure the corresponding dependent libraries, tools, and software versions, and ensure compliance with the corresponding environment versions.
[0071] Based on the above software development environment construction method, the present invention also provides a software development environment construction system, which has the same technical features and effective effects as the above software development environment construction method. Figure 3 The device is described in detail.
[0072] Figure 3 The structural block diagram of the software development environment construction system according to an embodiment of the present invention is schematically shown.
[0073] like Figure 3 As shown, the software development environment construction system 300 of this embodiment may include a script generation module 310 , an image production module 320 , and a compilation and packaging module 330 .
[0074] The script generation module 310 is used to generate script files required for the software development environment, and the script files are used to build a development environment consistent with the basic environment template. In one embodiment, the script generation module 310 can be used to perform the operation S110 described above, which will not be repeated here.
[0075] The image making module 320 is used to make an image based on the script file to be deployed to different development links of the software development environment. In one embodiment, the image making module 320 can be used to perform the operation S120 described above, which will not be described in detail here.
[0076] The compiling and packaging module 330 is used to normalize the market share information, activity information, aging information and security information, and determine the vitality value of the software development ecosystem according to the normalization result. The vitality value is used to characterize the health status, vitality level and development potential of the software development ecosystem. In one embodiment, the compiling and packaging module 330 can be used to perform the operation S130 described above, which will not be repeated here.
[0077] The push module 340 is used to detect whether the software package to be published matches the application server. If they match, the software package to be published is pushed to the application server.
[0078] According to an embodiment of the present invention, any multiple modules of the script generation module 310, the image production module 320, the compilation and packaging module 330, and the push module 340 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the script generation module 310, the image production module 320, the compilation and packaging module 330, and the push module 340 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the script generation module 310 , the image making module 320 , the compilation and packaging module 330 , and the push module 340 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be executed.
[0079] Figure 4 A block diagram of an electronic device suitable for implementing a method for building a software development environment according to an embodiment of the present invention is schematically shown.
[0080] like Figure 4As shown, the electronic device 400 according to an embodiment of the present invention includes a processor 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 to a random access memory (RAM) 403. The processor 401 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 401 may also include an onboard memory for caching purposes. The processor 401 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0081] In RAM 403, various programs and data required for the operation of electronic device 400 are stored. Processor 401, ROM 402 and RAM 403 are connected to each other via bus 404. Processor 401 performs various operations of the method flow according to the embodiment of the present invention by executing the programs in ROM 402 and / or RAM 403. It should be noted that the program can also be stored in one or more memories other than ROM 402 and RAM 403. Processor 401 can also perform various operations of the method flow according to the embodiment of the present invention by executing the programs stored in one or more memories.
[0082] According to an embodiment of the present invention, the electronic device 400 may further include an input / output (I / O) interface 405, which is also connected to the bus 404. The electronic device 400 may further include one or more of the following components connected to the input / output (I / O) interface 405: an input portion 406 including a keyboard, a mouse, etc.; an output portion 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 408 including a hard disk, etc.; and a communication portion 409 including a network interface card such as a LAN card, a modem, etc. The communication portion 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the input / output (I / O) interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage portion 408 as needed.
[0083] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0084] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 402 and / or RAM 403 described above and / or one or more memories other than ROM 402 and RAM 403.
[0085] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present invention.
[0086] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when the processor 401 executes the computer program. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0087] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 409, and / or installed from the removable medium 411. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0088] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the processor 401, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0089] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0090] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.
[0092] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A method for constructing a software development environment, characterized in that: include: Generate script files required for the software development environment, where the script files are used to build a development environment consistent with the basic environment template; Based on the script file, create an image, and deploy the image to different development links of the software development environment; In the image, the source code to be released that has been checked to be correct is compiled and packaged to obtain the software package to be released; In the case that the software package to be published matches the environment of the application server, the software package to be published is pushed to the application server.
2. The construction method according to claim 1, characterized in that: The script files required to generate the software development environment include: Generate a software script part and a hardware script part in a specific code repository, configuration item or file system to obtain the script file.
3. The construction method according to claim 2, characterized in that: The software script generation part includes: Generate a software content acquisition script and a software configuration script, wherein the software content acquisition script contains a basic software operating environment and general software information, and the software configuration script allows the generated image to be switched between different versions.
4. The construction method according to claim 1, characterized in that: The making of the image based on the script file includes: At least one of a virtual machine, an open source cloud platform technology, an aggregation technology or a container technology is used to process different script contents of the script file to complete the image production.
5. The construction method according to claim 4, characterized in that: After the image is created, the following steps are also included: A visual graphical interface tool is used to manage the image process.
6. The construction method according to claim 1, characterized in that: In the image, the source code to be released that has been checked to be correct is compiled and packaged, and before the software package to be released is obtained, the following steps are included: Perform code standardization and security detection on the source code to be released. If the source code to be released does not meet the preset quality requirements, modify the source code at the code submission level until the source code to be released meets the preset quality requirements.
7. The construction method according to claim 1, characterized in that: In the image, the source code to be released that is checked to be correct is compiled and packaged to obtain the software package to be released, including: Marking the software package to be released with characteristic information; The marked source code to be released is temporarily stored in the software product warehouse.
8. A software development environment construction system, characterized in that: include: A script generation module is used to generate script files required for the software development environment, and the script files are used to build a development environment consistent with the basic environment template; An image making module, used to make an image based on the script file, so as to be deployed to different development links of the software development environment; A compiling and packaging module, used to compile and package the source code to be released that has been checked to be correct in the image, to obtain a software package to be released; The push module is used to detect whether the software package to be released matches the application server. If they match, the software package to be released is pushed to the application server.
9. An electronic device, comprising: one or more processors; a storage system for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 7.