本論文使用agent 技術來解決因自動化eXtreme Programming(XP)中的continuous integration 實務所遇到的問題。這些問題包括:(1)多人開發的考慮,(2) 上傳build 成功的source code 至source code repository 的考慮,和(3)單一指令執行 build 的考慮。 在本論文中,開發一個continuous integration 工具,叫Agent-based Build System for XP,該工具自動化continuous integration 環境的build process。Build System 是 由二種agent 所構成的Multi-Agent System(MAS),此二種agent 分別是: Build Agent 和Report Agent。Build Agent 呼叫Ant 來處理build,而Report Agent 處理build report 發佈。 Build System 預期優點是:(1) 用Middle Agent 的服務註冊機制讓系統穩定執 行build,(2)用DAML 格式的build report 讓上傳source code 程序自動化,和(3)能 build 不同領域的application。 This thesis uses agent technology to address the issues encountered when automating the practice of continuous integration in eXtreme Programming (XP) environment. The issues are: (1) multiple developers, (2) uploading built source code to source code repository, and (3) using a single command to build project from source code. In this thesis, we develop a continuous integration tool called Agent-based Build System for XP to automate the build process. The build system is a Multi-Agent System (MAS) that consists of two agents: Build Agent and Report Agent. Build Agent is responsible for invoking Ant to deal with the build. Report Agent is responsible for publishing build report. The expected benefits of the system are: (1) using service registration of Middle Agent to run the build process robustly, (2) using the DARPA Agent Markup Language (DAML)-format build report to automate the process of uploading source code, and (3) being capable of building applications of different domains.