From b2bcb5b91f23199363800fc8e2c8642739eab4ed Mon Sep 17 00:00:00 2001 From: Anton Titovets Date: Thu, 6 Nov 2025 14:31:09 +0300 Subject: [PATCH] Fastfix --- ci/edt_build | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/ci/edt_build b/ci/edt_build index 8a6bc09691..9adb6503b4 100644 --- a/ci/edt_build +++ b/ci/edt_build @@ -21,23 +21,27 @@ pipeline { def runEdtExport = { dataPath, projectPath, configPath, projectName -> echo "Building ${projectName}..." - def output = bat( + def result = bat( encoding: 'UTF-8', script: "chcp 65001 >nul && 1cedtcli -data \"${dataPath}\" -command export --project \"${projectPath}\" --configuration-files \"${configPath}\"", + returnStatus: true, returnStdout: true ) - // Убираем строку с командой (первую строку) + def exitCode = result[0] + def output = result[1] + def cleanOutput = output.readLines().drop(1).join('\n').trim() - echo "EDT output for ${projectName}: '${cleanOutput}'" - - // Если есть какой-либо вывод после команды - считаем ошибкой - if (cleanOutput) { - error "EDT export for ${projectName} produced output (likely errors): ${cleanOutput}" - } else { - echo "✓ ${projectName} build completed silently (success)" + if (exitCode != 0) { + error "EDT export for ${projectName} failed with exit code ${exitCode}" } + + if (cleanOutput) { + error "EDT export for ${projectName} produced output: ${cleanOutput}" + } + + echo "✓ ${projectName} build completed successfully" } runEdtExport(env.EDT_RU, "./src/ru/OPI", "./build/OPI_RU", "RU")