From 804fddecc206d64b1e5ebe17cdeff19e29814462 Mon Sep 17 00:00:00 2001 From: Andrei <EndrIIMail@gmail.com> Date: Mon, 29 Jul 2019 20:05:44 +0300 Subject: [PATCH] Update NPM.py --- BuildBotLib/NPM.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/BuildBotLib/NPM.py b/BuildBotLib/NPM.py index fda0df3..37e23ca 100644 --- a/BuildBotLib/NPM.py +++ b/BuildBotLib/NPM.py @@ -17,6 +17,19 @@ def isLog(step): def getFactory(): factory = base.getFactory(); + factory.addStep( + steps.ShellCommand( + command = [ + 'npm', + "stop" + ], + doStepIf = lambda step : (not isLog(step)) , + haltOnFailure = True, + name = 'npm stop', + description = 'stop old version', + ) + ); + factory.addStep( steps.Git( repourl=util.Interpolate('%(prop:repository)s'), @@ -44,19 +57,6 @@ def getFactory(): ) ); - factory.addStep( - steps.ShellCommand( - command = [ - 'npm', - "stop" - ], - doStepIf = lambda step : (not isLog(step)) , - haltOnFailure = True, - name = 'npm stop', - description = 'stop old version', - ) - ); - factory.addStep( steps.ShellCommand( command = [