master-cfg/config/workers.py
2019-09-06 16:49:06 +02:00

17 lines
693 B
Python

from buildbot.plugins import worker
cpp_worker = worker.DockerLatentWorker('buildbot-cpp-worker', 'pass',
docker_host='tcp://192.168.178.39:2375',
image='buildbot-cpp-worker')
docker_worker = worker.DockerLatentWorker('buildbot-docker-worker', 'pass',
docker_host='tcp://192.168.178.39:2375',
image='buildbot-docker-worker',
volumes=['/var/run/docker.sock:/var/run/docker.sock'])
def append(workers):
workers.append(cpp_worker)
workers.append(docker_worker)
return workers