4
0
mirror of https://github.com/QuasarApp/QuasarAppCI.git synced 2025-05-08 19:29:35 +00:00

added stop Force in npm

This commit is contained in:
Andrei Yankovich 2019-07-23 17:13:55 +03:00
parent fca361f92e
commit 378076fef5

@ -8,6 +8,10 @@ import os
import subprocess
from BuildBotLib.secretManager import *
def isStopForce(step):
return step.getProperty('stopForce');
def getFactory():
factory = base.getFactory();
@ -41,6 +45,7 @@ def getFactory():
'npm',
"i"
],
doStepIf = lambda step : not isStopForce(step),
haltOnFailure = True,
name = 'npm install',
description = 'install all dependecies',
@ -53,6 +58,7 @@ def getFactory():
'npm',
"start"
],
doStepIf = lambda step : not isStopForce(step),
haltOnFailure = True,
name = 'npm start',
description = 'install new versio to server',
@ -66,4 +72,9 @@ def getRepo():
def getPropertyes():
return [
util.BooleanParameter(
name = 'stopForce',
label = 'Stop Force',
default = False
)
]