Skip to content

Commit

Permalink
Рефакторинг
Browse files Browse the repository at this point in the history
  • Loading branch information
kozstlink committed Dec 3, 2021
1 parent c8259bf commit 312e775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ru/pulsar/jenkins/library/steps/Swagger.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion src/ru/pulsar/jenkins/library/utils/OscriptModules.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 312e775

Please sign in to comment.