added support of log in chat of roma

This commit is contained in:
Andrei Yankovich 2019-07-27 20:57:10 +03:00
parent 03fa2f2df2
commit 2d888f6d7f

View File

@ -11,6 +11,8 @@ from BuildBotLib.secretManager import *
def isStopForce(step):
return step.getProperty('stopForce');
def isLog(step):
return step.getProperty('showLog');
def getFactory():
factory = base.getFactory();
@ -29,6 +31,19 @@ def getFactory():
)
);
factory.addStep(
steps.ShellCommand(
command = [
'docker-compose',
"logs"
],
doStepIf = lambda step : (not isStopForce(step)) and isLog(step),
haltOnFailure = True,
name = 'docker logs',
description = 'docker logs',
)
);
factory.addStep(
steps.ShellCommand(
command = [