mirror of
https://github.com/QuasarApp/QuasarAppCI.git
synced 2025-04-28 14:44:36 +00:00
added support of log in chat of roma
This commit is contained in:
parent
03fa2f2df2
commit
2d888f6d7f
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user