Pipeline setting update device, pipeline setting update method, and program
The pipeline settings update device automates configuration changes in CI/CD tools based on branch additions, addressing the manual update requirement and reducing user workload.
Patent Information
- Application Number
- JP2023060299
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
AI Technical Summary
CI/CD tools require manual updates to pipeline settings each time a new branch is added in a version control system, leading to increased user workload, especially when managing multiple deployment destinations.
A pipeline settings update device and method that automatically updates pipeline configurations in response to the addition of a release branch by integrating with a version control system, CI/CD system, and environment information database to dynamically set deployment parameters.
Automatically configures pipeline settings for new branches, reducing the need for manual updates and significantly decreasing user workload, particularly when dealing with numerous deployment branches.
Smart Images

Figure 2024147348000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a pipeline setting update device, a pipeline setting update method, and a program. [Background technology]
[0002] A method called Continuous Integration (CI) / Continuous Delivery (CD) is known as one of the program development methods. Programs that realize CI / CD are called CI / CD tools, and in recent years, have been widely used in program development. As one of the conventional techniques related to CI, for example, a technique is known that efficiently performs automatic execution in CI according to attribute information of tickets that manage the contents related to defects, etc. (Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2021-105866 A Summary of the Invention [Problem to be solved by the invention]
[0004] CI / CD tools can automatically execute builds, deployments, etc., but if source code, etc. is managed in a version control system (VCS) that uses branch functionality, the pipeline settings for automatically executing builds, deployments, etc. must be manually updated each time a branch is added, etc.
[0005] The present disclosure has been made in consideration of the above points, and provides a technique for updating a pipeline setting in response to the addition of a branch. [Means for solving the problem]
[0006] A pipeline setting update device according to one aspect of the present disclosure is a pipeline setting update device that updates setting information of pipeline processing in continuous delivery, and includes a detection unit that detects that a release branch, in which source code of a program to be deployed to a deployment destination is managed for each deployment destination, has been added to a repository, and a setting update unit that, when it is detected that the release branch has been added to the repository, adds information necessary for executing pipeline processing to deploy a program to the deployment destination corresponding to the release branch to the setting information and updates the setting information. Effect of the Invention
[0007] Techniques are provided to update pipeline configurations as branches are added. [Brief description of the drawings]
[0008] [Figure 1] FIG. 13 is a diagram for explaining an example of a branch strategy. [Diagram 2] FIG. 13 is a diagram for explaining an example of a CD when a branch function is used. [Diagram 3] FIG. 13 is a diagram for explaining an example of updating a pipeline setting file in association with the addition of a branch. [Figure 4] 1 is a diagram illustrating an example of an overall configuration of a development support system according to an embodiment of the present invention. [Diagram 5] FIG. 11 is a diagram illustrating an example of a functional configuration of a pipeline setting update program according to the present embodiment. [Figure 6] FIG. 4 is a diagram illustrating an example of a functional configuration of a collaboration program according to the embodiment. [Figure 7] FIG. 11 is a diagram illustrating an example of an environment information table. [Figure 8] FIG. 13 illustrates an example of an update template. [Figure 9] 13 is a flowchart illustrating an example of a registration process of an update template and environmental information. [Figure 10]13 is a flowchart illustrating an example of a pipeline setting file update process. [Figure 11] FIG. 13 illustrates an example of a pipeline setting file before being updated. [Figure 12] FIG. 13 illustrates an example of an updated pipeline setting file. [Figure 13] FIG. 2 illustrates an example of a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, one embodiment of the present invention will be described.
[0010] <Continuous integration / continuous delivery> First, we will explain the outline of continuous integration (CI) and continuous delivery (CD). Note that CI and CD are sometimes collectively referred to as "CI / CD."
[0011] Both CI / CD are program development techniques in which the contents of processes (jobs) such as build, test, and deploy are defined as scripts, and the scripts are automatically executed when triggered by registration (commit) to a version control system that manages the source code. A series of processes achieved by executing one or more jobs is called a "pipeline" or "pipeline processing." In general, CI refers to a technique for automating builds and tests, while CD refers to a technique for automating deployment.
[0012] Programs that achieve CI / CD are called CI tools / CD tools. These tools execute jobs according to the processing content (scripts) and execution order of those processes defined in a pipeline configuration file. For this reason, users need to define the processing content of the jobs they want to automate and the execution order of those processes in the pipeline configuration file.
[0013] <Branch strategy> For example, some version control systems (VCSs), including Git, have a feature called the branch function. The branch function is a function that allows you to manage the change history (commits) of source code in units called branches. In addition, the operations regarding branches determined in each development project are called "branch strategies."
[0014] A typical example of a branch strategy is shown in Figure 1. In the example shown in Figure 1, source code development is performed in the develop branch, and the original version of the source code to be deployed is managed in the master branch. In the release branch, source code that has been customized as necessary for each deployment destination (this source code is the source code that is actually deployed) is managed. Examples of customization at this time include changing parameter information written in the source code and turning on and off application functions. In the following, the deployment destination of source code managed in the release-A branch is called "Deployment destination A", and the deployment destination of source code managed in the release-B branch is called "Deployment destination B". In general, the deployment destination of source code managed in the release-* branch is called "Deployment destination*" with "*" as a wildcard (any character or string).
[0015] <CD when using branch function> Figure 2 shows CD when using the branch function in the version control system. Figure 2 explains the case of deploying source code to destination A as an example. As shown in Figure 2, (1) when source code is registered in the release-A branch by the developer terminal, (2) this registration triggers an instruction to execute the pipeline to the CI / CD tool. As a result, the CI / CD tool, according to the pipeline configuration file, (3) instructs the build tool to build the source code, and then (4) instructs the deploy tool to deploy the executable file created by this build, and as a result, this executable file is deployed to destination A.
[0016] In this way, when the branching strategy separates release branches for each deployment environment, when source code is registered in a release branch, the registration triggers the launch of the CI / CD tool, and the code is deployed to the deployment destination corresponding to that release branch.
[0017] However, for example, when adding a release branch due to an increase in new deployment destinations, the information required for deployment to this deployment destination must be added / updated to the pipeline configuration file. For this reason, every time a release branch is added due to an increase in deployment destinations, the pipeline configuration file must be manually updated.
[0018] For example, consider the case where a release-C branch is added in the example shown in FIG. 1. In this case, as shown in FIG. 3, it is necessary to manually add / update the definition of information required for deployment to destination C in the pipeline setting file. For example, in the example shown in FIG. 3, it is necessary to add the pipeline execution conditions for deploying to destination C and the environment information of destination C (Internet Protocol (IP) address of a virtual machine (VM) indicating the environment of destination C, the login account name and password for the VM, etc.). Note that the pipeline setting file shown in FIG. 3 describes only the definition of information required for deployment, and omits the definition of information required for build. Similarly, hereinafter, the definition of information required for build is omitted in the pipeline setting file.
[0019] In this way, every time a release branch is added, the pipeline configuration file needs to be updated manually, which places a burden on the user, especially when a large number of release branches are added.
[0020] Therefore, the following describes a development support system 1 that automatically updates the pipeline settings in response to the addition of a release branch. With this development support system 1, even when a release branch is added, the user does not need to manually update the pipeline setting file, which reduces the user's workload.
[0021] In the following, we assume that each deployment destination environment is a virtual machine (VM), and that a release branch is prepared for each deployment destination to manage the source code to be deployed to that deployment destination. Also, the IP address of the VM, and the login account name and login password for logging in to that VM are collectively referred to as environment information.
[0022] However, the deployment destination environment being a virtual machine is just an example, and is not limited to this. Also, all of the above environmental information is just an example, and there can be various environmental information other than the IP address, login account name, and login password. For example, a key ID of a common key shared with the deployment destination can also be one of the environmental information.
[0023] <Overall configuration example of development support system 1> An example of the overall configuration of the development support system 1 according to this embodiment is shown in Fig. 4. As shown in Fig. 4, the development support system 1 according to this embodiment includes a pipeline setting update system 10, a version control system 20, a CI / CD system 30, a CD environment manager terminal 40, and a developer terminal 50. Here, the pipeline setting update system 10 and the version control system 20, the pipeline setting update system 10 and the CI / CD system 30, the version control system 20 and the CI / CD system 30, the pipeline setting update system 10 and the CD environment manager terminal 40, and the version control system 20 and the developer terminal 50 are connected to each other so as to be able to communicate with each other via a communication network such as an in-house network.
[0024] The pipeline setting update system 10 is a computer or computer system such as a general-purpose server having a pipeline setting update program 110 and an environmental information DB 120.
[0025] When the pipeline setting update program 110 receives an environment information registration request from the CD environment manager terminal 40, it stores (registers) the environment information included in this request in the environment information DB 120. In addition, when the pipeline setting update program 110 receives a branch addition notification indicating that a release branch has been added to the version control system 20, it updates a pipeline setting file 313 (described later) by using the environment information stored in the environment information DB 120 and an update template acquired from the version control system 20.
[0026] The environment information DB 120 stores environment information necessary for updating the pipeline setting file 313. Note that one or more pieces of environment information stored in the environment information DB 120 configure a table (environment information table) in which the environment information is a record and the items (attributes) included in the environment information are columns.
[0027] The pipeline setting update program 110 and the environmental information stored in the environmental information DB 120 will be described in detail later.
[0028] The version control system 20 is a computer or computer system such as a general-purpose server having a linkage program 210, a version control program 220, a template storage unit 230, and a repository 240.
[0029] When the linking program 210 receives a template registration request from the developer terminal 50, it saves (registers) the update template included in this request in the template storage unit 230. Furthermore, when a release branch is added to the repository 240, the linking program 210 transmits a branch addition notification to the pipeline setting and updating system 10. Furthermore, when the linking program 210 receives an update template acquisition request from the pipeline setting and updating system 10, it transmits the update template stored in the template storage unit 230 to the pipeline setting and updating system 10. Here, the update template is a template that defines standard information other than information that differs depending on the deployment destination.
[0030] When the version control program 220 receives a source code registration request from the developer terminal 50, it registers the source code included in this request in the corresponding branch. When the version control program 220 receives a branch addition request from the developer terminal 50, it adds a branch corresponding to this request to the repository 240. Furthermore, when the source code is registered in the release branch, the version control program 220 uses this registration as a trigger to send a pipeline execution instruction to the CI / CD system 30 for building and deploying the source code.
[0031] The template storage unit 230 stores the update template. The repository 240 manages the source code and its change history for each branch.
[0032] The link program 210 and the update templates stored in the template storage unit 230 will be described in detail later.
[0033] The CI / CD system 30 is a computer or computer system such as a general-purpose server that has a CI / CD tool 310, a build tool 320, and a deployment tool 330.
[0034] The CI / CD tool 310 executes the pipeline when it receives a pipeline execution instruction from the version control system 20. Here, the CI / CD tool 310 includes a build instruction unit 311, a deploy instruction unit 312, and a pipeline setting file 313. When the CI / CD tool 310 receives a pipeline execution instruction, the build instruction unit 311 issues a build instruction to the target source code in accordance with the instruction and the pipeline setting file 313, and the deploy instruction unit 312 issues a deploy instruction to the target executable file.
[0035] The build tool 320 builds the source code to create an executable file in accordance with the build instructions.
[0036] The deployment tool 330 deploys the executable file to the deployment destination in response to the deployment instruction.
[0037] Any known CI / CD tool can be used as the CI / CD tool 310, for example, GitLab, etc. Any known build tool can be used as the build tool 320, for example, Maven, Ant, Gradle, etc. Any known deploy tool can be used as the deploy tool 330, for example, an SSH (Secure Shell) tool that can use the scp command, etc.
[0038] The CD environment manager terminal 40 is a terminal (for example, a PC (personal computer), a smartphone, a tablet terminal, etc.) used by a person (CD environment manager) who registers the deployment destination environment information.
[0039] The developer terminal 50 is a terminal (for example, a PC (personal computer), a smartphone, a tablet terminal, etc.) used by a person (developer) who develops source code.
[0040] 4 is an example, and the overall configuration of the development support system 1 is not limited to this. For example, two or more systems among the pipeline setting update system 10, the version control system 20, and the CI / CD system 30 may be integrated. Also, for example, the CD environment manager terminal 40 and a developer terminal 50 may be the same terminal.
[0041] <Example of functional configuration of Pipeline Settings Update Program 110> As shown in FIG. 5, the pipeline setting update program 110 according to this embodiment can realize an environment information registration unit 111, a notification receiving unit 112, an update template acquisition unit 113, and a pipeline setting file update unit 114 by processing executed by a processor such as a CPU (Central Processing Unit).
[0042] The environment information registration unit 111 receives an environment information registration request transmitted from the CD environment manager terminal 40, and stores (registers) the environment information included in this environment information registration request in the environment information DB120.
[0043] The notification receiving unit 112 receives a branch addition notification transmitted from the version control system 20. Note that the branch addition notification includes, for example, the name of the deploy destination corresponding to the release branch added to the version control system 20 (hereinafter, also referred to as the "deploy destination name") and the like.
[0044] When the notification receiving unit 112 receives the branch addition notification, the update template acquisition unit 113 transmits an update template acquisition request to the version control system 20. As a result, the update template is returned from the version control system 20 as a response to this update template acquisition request.
[0045] The pipeline setting file update unit 114 acquires, from the environment information DB 120, environment information corresponding to the deployment destination name included in the branch addition notification received by the notification receiving unit 112, and then updates the pipeline setting file 313 using this environment information and the update template acquired by the update template acquisition unit 113. That is, the pipeline setting file update unit 114 sets, for example, the deployment destination name, environment information, and the like in the update template, and then adds the definition information included in the update template to the pipeline setting file 313. As a result, a definition of information required for deployment to a deployment destination corresponding to the release branch added to the version control system 20 is added to the pipeline setting file 313.
[0046] <Example of functional configuration of the linkage program 210> As shown in FIG. 6, the linkage program 210 according to this embodiment can realize an update template registration unit 211, a branch addition detection unit 212, a notification unit 213, and an update template transmission unit 214 by processing executed by a processor such as a CPU.
[0047] The update template registration unit 211 receives a template registration request sent from the developer terminal 50, and saves (registers) the update template included in this template registration request in the template storage unit 230.
[0048] The branch addition detection unit 212 monitors the repository 240, and when a release branch is added to the repository 240, detects the addition.
[0049] When the branch addition detection unit 212 detects the addition of a release branch, the notification unit 213 transmits a branch addition notification including the name of the deploy destination corresponding to the release branch, etc., to the pipeline setting update system 10.
[0050] The update template transmission unit 214 receives an update template acquisition request transmitted from the pipeline setting update system 10, and acquires the update template from the template storage unit 230. In addition, the update template transmission unit 214 transmits the update template to the pipeline setting update system 10.
[0051] <Environment information table> Fig. 7 shows an example of an environment information table composed of one or more environmental information stored in the environment information DB 120. The environment information table 120T shown in Fig. 7 is composed of three records of environmental information, and each environmental information includes "deployment destination name", "IP address", "login account name", "login password", "other information related to the environment", etc.
[0052] The name of the deployment destination is set in "destination name". The IP address of the deployment destination environment (VM) is set in "IP address". The account name for logging in to the deployment destination environment (VM) is set in "login account name". The password for logging in to the deployment destination environment (VM) is set in "login password". Other information is set in "other environment information". Examples of other information include the key ID of the common key for logging in to the deployment destination environment (VM), and the folder name and folder path in which the executable file is stored at the deployment destination.
[0053] Note that the environment information table 120T shown in Fig. 7 is an example and is not limited to this. For example, each piece of environment information may include items (attributes) other than the "deployment destination name", "IP address", "login account name", "login password", and "other information related to the environment". Also, for example, when logging in to the deployment destination environment by a method other than using an account name and password, the environment information does not need to include the "login account name" and "login password".
[0054] <Update template> FIG. 8 shows an example of an update template stored in the template storage unit 230. The update template 230D shown in FIG. 8 includes a stage definition 231 and a deployment definition 232. Stages are defined in the stage definition 231. Stages is a place where any name of a process executed during a pipeline in GitLab or the like is written. The deployment definition 232 includes a Script representing the process content and rules representing the execution conditions. Here, a wildcard (*) is defined in the stage definition 231 and the deployment definition 232 in the place where the deployment destination name is entered. In addition, in the scrit of the deployment definition 232, as an example, a variable in which information specified as a parameter in the scp command is set is defined in angle brackets <>. In addition, in the rules of the deployment definition 232, as an example, a condition is defined indicating that the pipeline is executed when source code is registered in the release-* branch as a trigger.
[0055] In the example shown in Figure 8, <login account name of *> is a variable in which the login account name of the deployment destination is set. Similarly, <IP address of *> is a variable in which the IP address of the deployment destination is set, and <login password of *> is a variable in which the login password of the deployment destination is set. Additionally, <location of file to be deployed> is a variable in which the location where the executable file to be deployed is stored is set, and <location of deployment destination> is a variable in which the location where the executable file is stored at the deployment destination is set.
[0056] By setting the deployment destination name in the place of the wildcard in the update template 230D shown in FIG. 8 and then setting information corresponding to the variable for each variable, it is possible to create information to be added to the pipeline configuration file 313. Note that, for example, the folder name or folder path of the folder where the build tool 320 outputs the executable file may be set in the <location of the file to be deployed>. Also, for example, the "folder name or folder path where the executable file is stored at the deployment destination" set in the "other information about the environment" of the corresponding environment information may be set in the <location of the deployment destination>. However, for example, the default folder name or folder path may be set in the <location of the deployment destination>.
[0057] 8 is merely an example and is not limited to this. For example, when logging in to the deployment destination environment by a method other than using an account name and password, the update template may define 〈Key ID of *〉 instead of 〈Login account name of *〉 and 〈Login password of *〉.
[0058] <Registration process of update template and environment information> The process of registering the update template and the environmental information will be described below with reference to FIG.
[0059] When the update template registration unit 211 receives a template update request from the developer terminal 50, it saves (registers) the update template included in this template registration request in the template storage unit 230 (step S101). Here, the update template is created in the developer terminal 50, and the template registration request including this update template is transmitted from the developer terminal 50 to the version control system 20.
[0060] When the environment information registration unit 111 receives an environment information registration request from the CD environment manager terminal 40, it stores (registers) the environment information included in this environment information registration request in the environment information DB 120 (step S102). Here, the environment information is created by the CD environment manager terminal 40, and the environment information registration request including this environment information is transmitted from the CD environment manager terminal 40 to the pipeline setting update system 10.
[0061] The above step S102 is repeatedly executed every time it becomes necessary to register new environmental information.
[0062] <Pipeline configuration file update process> The pipeline setting file update process will be described below with reference to FIG.
[0063] The branch addition detection unit 212 determines whether or not the addition of a release branch has been detected (Step S201).
[0064] If the addition of a release branch is not detected in step S201, the branch addition detection unit 212 waits for a predetermined time, for example, and then returns to step S201. As a result, step S201 is repeatedly executed until the addition of a release branch is detected.
[0065] On the other hand, when the addition of a release branch is detected in the above step S201, the notification unit 213 transmits a branch addition notification to the pipeline setting update system 10 (step S202). Here, the branch addition notification includes, for example, the name of the deployee (deployee name) corresponding to the release branch added to the repository 240.
[0066] When the notification receiving unit 112 receives the branch addition notification, the update template acquisition unit 113 transmits an update template acquisition request to the version control system 20 (step S203).
[0067] When the update template transmission unit 214 receives the update template acquisition request, it acquires the update template from the template storage unit 230 and transmits the update template to the pipeline setting update system 10 as a response to the update template acquisition request (step S204).
[0068] Upon receiving the update template, the pipeline setting file update unit 114 updates the pipeline setting file 313 through the following steps 1 to 4 (step S205).
[0069] Step 1: The pipeline setting file update unit 114 acquires, from the environment information DB 120, environment information corresponding to the deployee name included in the branch addition notification received by the notification receiving unit 112. For example, if the deployee name included in the branch addition notification is "C", the pipeline setting file update unit 114 acquires, from the environment information DB 120, environment information including the deployee name "C".
[0070] Step 2: The pipeline setting file update unit 114 sets the deployment destination name for the wildcard (*) defined in the update template. For example, the pipeline setting file update unit 114 sets the deployment destination name "C" for the wildcard (*) defined in the update template.
[0071] Step 3: The pipeline setting file update unit 114 sets information corresponding to each variable defined in the update template. For example, assuming the update template shown in Fig. 8, the pipeline setting file update unit 114 sets the login account name included in the environmental information to <C's login account name>, sets the IP address included in the environmental information to <C's IP address>, and sets the login password included in the environmental information to <C's login password>. In addition, the pipeline setting file update unit 114 sets, for example, the location where the executable file to be deployed is stored to <location of file to be deployed>, and the location where the executable file is stored at the deployment destination to <location of deployment destination>.
[0072] Step 4: The pipeline setting file update unit 114 adds information defined in the stage definition and deployment definition included in the update template to the pipeline setting file 313, and updates the pipeline setting file 313. As a result, information required for deployment to the deployment destination corresponding to the release branch added to the repository 240 is added / updated to the pipeline setting file 313.
[0073] As an example, the pipeline setting file 313 before and after the update in the case where the release branch added to the repository 240 is a "release-C branch" is shown in Fig. 11 and Fig. 12, respectively. In the pipeline setting file 313 before the update shown in Fig. 11, "-build", "-deployA", and "-deployB" are defined in the stage definition 411. In addition, in the deployment definition 412, definition information 421 of the processing content and execution conditions for deploying to the deploy destination A, and definition information 422 of the processing content and execution conditions for deploying to the deploy destination B are defined. On the other hand, in the pipeline setting file 313 after the update shown in Fig. 12, "-deployC" is added to the stage definition 411, and definition information 423 of the processing content and execution conditions for deploying to the deploy destination C is added to the deployment definition 412.
[0074] When the pipeline setting file update process is completed, the pipeline setting update program 110 waits for a predetermined time and then starts the execution of step S201 again.
[0075] <Hardware configuration example> The pipeline setting update system 10, the version control system 20, and the CI / CD system 30 included in the development support system 1 according to this embodiment can be realized, for example, by the hardware configuration of a computer 500 shown in Fig. 13. The computer 500 shown in Fig. 13 has an input device 501, a display device 502, an external I / F 503, a communication I / F 504, a RAM (Random Access Memory) 505, a ROM (Read Only Memory) 506, an auxiliary storage device 507, and a processor 508. Each of these hardware components is connected to each other via a bus 509 so as to be able to communicate with each other.
[0076] The input device 501 is, for example, a keyboard, a mouse, a touch panel, a physical button, etc. The display device 502 is, for example, a display, a display panel, etc. Note that the computer 500 does not necessarily have to have at least one of the input device 501 and the display device 502, for example.
[0077] The external I / F 503 is an interface with an external device such as a recording medium 503a. Examples of the recording medium 503a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.
[0078] The communication I / F 504 is an interface for connecting the computer 500 to a communication network. The RAM 505 is a volatile semiconductor memory (storage device) that temporarily stores programs and data. The ROM 506 is a non-volatile semiconductor memory (storage device) that can store programs and data even when the power is turned off. The auxiliary storage device 507 is a non-volatile storage device such as a hard disk drive (HDD), a solid state drive (SSD), or a flash memory. The processor 508 is an arithmetic device such as a CPU.
[0079] 13 is an example, and the hardware configuration of the computer 500 is not limited thereto. For example, the computer 500 may have multiple auxiliary storage devices 507 and multiple processors 508, may not have some of the hardware shown in the figure, or may have various hardware other than the hardware shown in the figure.
[0080] <Modification> Modifications of the above embodiment will now be described.
[0081] Variation 1 In the above embodiment, the pipeline setting file 313 is updated in response to the addition of a release branch, but for example, the pipeline setting file 313 may be updated in response to the deletion of a release branch. That is, when a release branch is deleted, information required for deployment to a deployment destination corresponding to this release branch may be deleted from the pipeline setting file 313. This makes it possible to automatically update the pipeline setting file 313 when a release branch is deleted.
[0082] Variation 2 In the above embodiment, the pipeline setting file 313 is updated in response to the addition of a release branch. However, for example, the pipeline setting file 313 may be updated in response to a change in the environment information stored in the environment information DB 120. That is, when the environment information stored in the environment information DB 120 is changed, information required for deployment to a deployment destination corresponding to the deployment destination name included in the environment information may be changed among the information defined in the pipeline setting file 313. As a result, for example, when the login password of the deployment destination is changed, the login password of the environment information stored in the environment information DB 120 is also updated, so that the pipeline setting file 313 can be automatically updated.
[0083] <Summary> As described above, in the development support system 1 according to the present embodiment, when a release branch exists for each deployment destination by the branch function of the version control system 20, the pipeline setting can be automatically updated in response to the addition of a release branch. Therefore, there is no need to manually update the pipeline setting in response to the addition of a release branch, and the user's workload can be reduced. In particular, for example, in cases where a large number of release branches are added due to contracts with many customers, or where many release branches are required because the specifications of devices on which the application to be developed runs vary depending on the manufacturer of the device, the user's workload can be significantly reduced.
[0084] The present invention is not limited to the above-described embodiments specifically disclosed, and various modifications, changes, combinations with known technologies, etc. are possible without departing from the scope of the claims. [Explanation of symbols]
[0085] 1. Development Support System 10 Pipeline configuration update system 20 Version Control Systems 30 CI / CD Systems 40 CD environment manager terminal 50 Developer Terminals 110 Pipeline Settings Update Program 120 Environmental information DB 210 Collaborative Programs 220 Version Control Programs 230 Template storage section 240 repositories 310 CI / CD Tools 311 Build Instructions 312 Deploy Instructions 313 Pipeline Configuration File 320 Build Tools 330 Deployment Tools 500 Computers 501 Input Device 502 Display device 503 External I / F 503a Recording media 504 Communication I / F 505 RAM 506 ROM 507 Auxiliary storage 508 Processor 509 Bus
Claims
1. A pipeline setting update device that updates setting information of a pipeline process in continuous delivery, A detection unit that detects, for each deployment destination, that a release branch in which source code of a program to be deployed to the deployment destination is managed has been added to the repository; a setting update unit that, when it is detected that the release branch has been added to the repository, adds information required for executing a pipeline process for deploying a program to a deployment destination corresponding to the release branch to the setting information and updates the setting information; A pipeline setting update device having:
2. an environment information storage unit that stores environment information representing information related to the deployment destination environment; The setting update unit is The pipeline setting update device according to claim 1 , further comprising: updating the setting information using an update template for updating the setting information and environment information of a deployment destination corresponding to a release branch added to the repository.
3. The setting update unit is 3. The pipeline setting update device according to claim 2, further comprising: setting, in the update template, a name of a deployment destination corresponding to a release branch added to the repository and environmental information of the deployment destination corresponding to the release branch added to the repository; and updating the setting information by adding information contained in the update template after the setting to the setting information.
4. The update template includes a process content template and an execution condition template, The setting update unit is 4. A pipeline setting update device as described in claim 3, wherein a name of a deployment destination corresponding to a release branch added to the repository is set in the processing content template and the execution condition template, and environmental information of the deployment destination corresponding to the release branch added to the repository is further set in the processing content template, and then the processing content template and execution condition template after the settings are added to the setting information, thereby updating the setting information.
5. the deploy-to environment is a virtual machine; 5. The pipeline setting update device according to claim 2, wherein the environment information includes at least an address of the virtual machine and information for logging in to the virtual machine.
6. The pipeline setting update device of claim 5, wherein the environmental information includes information indicating a location where source code of a program to be deployed to a deployment destination corresponding to a release branch added to the repository is stored, and information indicating a location where a program to be deployed to a deployment destination corresponding to a release branch added to the repository is stored.
7. A pipeline setting update device that updates setting information of a pipeline process in continuous delivery, A detection step of detecting that a release branch in which source code of a program to be deployed to each deployment destination is managed has been added to a repository for each deployment destination; a setting update step of adding information required for executing a pipeline process for deploying a program to a deployment destination corresponding to the release branch to the setting information when it is detected that the release branch has been added to the repository, and updating the setting information; Run the pipeline configuration update method.
8. A pipeline setting update device that updates setting information of a pipeline process in continuous delivery, A detection step of detecting that a release branch in which source code of a program to be deployed to each deployment destination is managed has been added to a repository for each deployment destination; a setting update step of adding information required for executing a pipeline process for deploying a program to a deployment destination corresponding to the release branch to the setting information when it is detected that the release branch has been added to the repository, and updating the setting information; A program that executes the following.
Citation Information
Patent Citations
Program development support system and program development support method
JP2021105866A
