Skip to content

Commit

Permalink
Фикс
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovEV committed Jan 19, 2024
1 parent 2add81c commit cf1a9a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ class GetExtensions implements Serializable {
}

private void buildExtension(Extension extension, String srcDir, String vrunnerPath, IStepExecutor steps) {
FilePath (File $EXTENSIONS_OUT_DIR).mkdirs()
// Получаем экземпляр класса FilePath, указывающий на рабочий каталог Jenkins.
FilePath workspace = new FilePath(steps.getNode(), steps.env.WORKSPACE)

// Создаем объект FilePath для директории EXTENSIONS_OUT_DIR внутри рабочего каталога.
FilePath extensionsOutDir = workspace.child(EXTENSIONS_OUT_DIR)

// Создаем директорию, если она не существует.
if (!extensionsOutDir.exists()) {
extensionsOutDir.mkdirs()
}

def compileExtCommand = "$vrunnerPath compileexttocfe --src ${srcDir} --out $EXTENSIONS_OUT_DIR/${extension.name}.cfe"
List<String> logosConfig = ["LOGOS_CONFIG=$config.logosConfig"]
steps.withEnv(logosConfig) {
Expand Down

0 comments on commit cf1a9a4

Please sign in to comment.