From 0e2f76b6f0ecb4b4c00a4c8001843b3c54bc08ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 18 Apr 2017 13:29:50 +0200 Subject: Finish agent and worker logic --- bbot/bbot-agent@.service | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bbot/bbot-agent@.service') diff --git a/bbot/bbot-agent@.service b/bbot/bbot-agent@.service index af760b3..5f160cf 100644 --- a/bbot/bbot-agent@.service +++ b/bbot/bbot-agent@.service @@ -12,9 +12,13 @@ Environment=RAM=1048576 Environment=BOOTSTRAP_TIMEOUT=600 Environment=BUILD_TIMEOUT=1800 +Environment=REQUEST_TIMEOUT=300 -Environment=TOOLCHAIN_ID=123abc +Environment=TOOLCHAIN_NAME=%i Environment=TOOLCHAIN_NUM=1 +Environment=TOOLCHAIN_ID= + +Environment="CONTROLLER_URL=https://example.org/?build-task" ExecStart=/build/bbot/%i/bin/bbot-agent --systemd-daemon \ --verbose ${VERBOSE} \ @@ -22,9 +26,11 @@ ExecStart=/build/bbot/%i/bin/bbot-agent --systemd-daemon \ --ram ${RAM} \ --bootstrap-timeout ${BOOTSTRAP_TIMEOUT} \ --build-timeout ${BUILD_TIMEOUT} \ - %i \ - ${TOOLCHAIN_NUM} \ - ${TOOLCHAIN_ID} + --request-timeout ${REQUEST_TIMEOUT} \ + --toolchain-name ${TOOLCHAIN_NAME} \ + --toolchain-num ${TOOLCHAIN_NUM} \ + --toolchain-id ${TOOLCHAIN_ID} \ + $CONTROLLER_URL User=build Group=build -- cgit v1.1