From 312e77553c485d4c33e9e80f39392888d7421140 Mon Sep 17 00:00:00 2001 From: Sergey Kozinskiy Date: Fri, 3 Dec 2021 16:21:35 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ru/pulsar/jenkins/library/steps/Swagger.groovy | 2 +- src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ru/pulsar/jenkins/library/steps/Swagger.groovy b/src/ru/pulsar/jenkins/library/steps/Swagger.groovy index 0aeda16d..dc7e3953 100644 --- a/src/ru/pulsar/jenkins/library/steps/Swagger.groovy +++ b/src/ru/pulsar/jenkins/library/steps/Swagger.groovy @@ -31,7 +31,7 @@ class Swagger { String swaggerPath = OscriptModules.getModulePath("swagger"); - steps.cmd(swaggerPath + "generate --src-path $config.srcDir --out $OUT") + steps.cmd(swaggerPath + " generate --src-path $config.srcDir --out $OUT") steps.archiveArtifacts(OUT) } diff --git a/src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy b/src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy index 03411c2b..b4ffb4ef 100644 --- a/src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy +++ b/src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy @@ -8,7 +8,7 @@ class OscriptModules { IStepExecutor steps = ContextRegistry.getContext().getStepExecutor() - String moduleBinary = steps.isUnix() ? moduleName : "$moduleName"".bat"; + String moduleBinary = steps.isUnix() ? moduleName : "$moduleName.bat"; String modulePath = "oscript_modules/bin/$moduleBinary"; if (!steps.fileExists(modulePath)) { modulePath = moduleBinary;