【问题标题】:buildbot on windows as a serviceWindows 上的 buildbot 作为服务
【发布时间】:2010-11-09 20:04:34
【问题描述】:

在遵循on their website 概述的关于如何在 Windows 上设置 buildbot 的建议后,我还有最后一个问题 - 我有多个从站和一个主站都设置在一台计算机上(它们都是演示从站,对吧现在,做一些简单的事情——稍后当我们将其中一些拆分到他们自己的机器上时,这将不是完全相同的问题),那么我如何将它们全部作为服务运行?我尝试将我所有的从/主目录添加到服务中,并尝试再次运行他们的服务设置工具,但无济于事。

我觉得我错过了一些简单的东西,如果有人能指出我正确的方向,我将不胜感激。

【问题讨论】:

    标签: windows service buildbot


    【解决方案1】:

    好的,我链接到的 wiki 上给出的建议是错误的。他们建议使用 regedit 添加参数...由于某种原因,无法在此处指定多个构建目录。在 buildbot_service.py 中,它概述了实际应该做什么:

    #   - Start Control Panel->Administrative Tools->Services
    #   - Locate the previously installed buildbot service.
    #   - Open the "properties" for the service.
    #   - Enter the directory names into the "Start Parameters" textbox.  The
    #     directory names must be fully qualified, and surrounded in quotes if
    #    they include spaces.
    #   - Press the "Start"button.
    

    这里可以输入多个目录,用空格隔开!

    【讨论】:

      【解决方案2】:

      一个slave可以同时运行多个构建,所以你可能只需要一台给定机器上的一个slave。

      【讨论】:

        【解决方案3】:

        首先,我意识到这是非常古老的。 其次,这对我来说可能比什么都重要。

        来自关于启动 Windows 服务的 Buildbot 文档:http://docs.buildbot.net/current/manual/installation/misc.html#launching-worker-as-windows-service 有关于创建名为 parameters (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BuildBot\Parameters) 的注册表项和创建名称为 directories 的字符串项 (REG_SZ) 和worker 基目录的绝对路径值。

        对于多个 worker(和/或 master),将 directories 条目的值设置为分号 ; 分隔的各个基本目录的绝对路径列表。

        【讨论】:

          猜你喜欢
          • 2021-05-11
          • 2011-04-30
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多