Abstract:
Aiming at the problems of unreasonable allocation of build tasks, low utilization of server resources, low efficiency and preemption of server resources of the current continuous integration platform, this paper presents a continuous integration build algorithm and its system implementation to improve the efficiency of software integration. We calculated the various characteristics of the build task, such as operating system, CPU architecture, application software environment, minimum disk space requirements, and calculated the value score of the build task. We obtained the characteristics of the build server in real time, such as CPU utilization, memory utilization, remaining disk capacity, disk IO utilization and other performance characteristics, and calculated the performance value score of the build server. The build task was assigned to the appropriate build server through the build algorithm. Practice shows that the algorithm can make full use of the computing resources of the build server, reduce the build time, and improve the efficiency of continuous integration construction.