The CI environment of the SpringBoot program is built @Arthur

     In the past, we used CI to run WEB applications running on weblogic and tomcat, and the effect was very good. After the system framework was added to the springboot component this year, the original hudson Job usage method was no longer applicable, so corresponding improvements were made. The record is as follows:

      (Try it, either hudson or jenkins can be used, the two configurations are similar (jenkins is simpler). But we used hudson before, so we still use hudson here.)

      1. CI system installation

     Download the version corresponding to the server operating system, here is hudson.3.3.3.war. installation steps:

      (1) Put it in the target directory, execute java -jar hudson.3.3.3.war, you can modify the communication port through --httpPort=**** --ajp13Port=****. The address where the default program decompresses and runs is: c:/user/{user}/.hudson/, hereinafter referred to as "default address".

     (2) When starting for the first time, you also need to enter the management page through the web page and install the corresponding plug-in.

    2. Configure self-starting services

     After the plugin is installed, there is an install as windows service option in "System Configuration". Install the program windows self-starting service through it. In order to facilitate management, you can copy the entire folder of "Default Address" to a custom directory, which is convenient for later copying and use.

       Then set the address prompted after clicking install as windows service as a custom directory.

     3. Configure the corresponding job

     There can be various configuration methods, such as executing a batch after the general task is executed to realize automatic publishing. This is achieved by executing an ant command after the execution of the maven command is completed.

      In terms of program requirements, save the maven and ant scripts to the root directory of the program and submit them together.

 

 

      

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325062306&siteId=291194637