English 中文(简体)
buildbot on windows as a service
原标题:

After following the suggestions outlined on their website on how to set up buildbot on windows, I m left with one last question - I have multiple slaves and one master all set up on one computer (they re all demo slaves right now, doing simple things - later on when we split some of these off to their own machines this won t be quite the same problem), so how do I run them all as services?? I tried adding all my slave/master directories to the service, and I tried running their service set up tool again, to no avail.

I feel like I m missing something simple, and would really appreciate it if someone could point me in the right direction.

最佳回答

Okay, the advice given on the wiki I linked to was wrong. They suggest using regedit to add parameters... for some reason multiple build directories can t be specified there. In buildbot_service.py, it s outlined what should actually be done:

#   - 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.

Here, multiple directories can be entered, separated by spaces!

问题回答

A slave can run multiple builds at the same time, so you probably only need one slave on a given machine.

Firstly, I realise this is very old. Secondly, this is probably more for me than anything.

From the Buildbot documentation on launching a windows service: http://docs.buildbot.net/current/manual/installation/misc.html#launching-worker-as-windows-service there are instructions for making a registry entry called parameters (HKEY_LOCAL_MACHINESYSTEMCurrentControlSetservicesBuildBotParameters) and creating a string entry (REG_SZ) with the name directories and a value of the absolute path of the base directory for the worker.

For multiple workers (and/or masters) set the value of the directories entry to a semi-colon ; separated list of absolute paths to the respective base directories.





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签