1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
This commit is contained in:
Anton Titovets
2025-11-06 14:31:09 +03:00
parent c62e34ac0e
commit b2bcb5b91f

22
ci/edt_build vendored
View File

@@ -21,23 +21,27 @@ pipeline {
def runEdtExport = { dataPath, projectPath, configPath, projectName -> def runEdtExport = { dataPath, projectPath, configPath, projectName ->
echo "Building ${projectName}..." echo "Building ${projectName}..."
def output = bat( def result = bat(
encoding: 'UTF-8', encoding: 'UTF-8',
script: "chcp 65001 >nul && 1cedtcli -data \"${dataPath}\" -command export --project \"${projectPath}\" --configuration-files \"${configPath}\"", script: "chcp 65001 >nul && 1cedtcli -data \"${dataPath}\" -command export --project \"${projectPath}\" --configuration-files \"${configPath}\"",
returnStatus: true,
returnStdout: true returnStdout: true
) )
// Убираем строку с командой (первую строку) def exitCode = result[0]
def output = result[1]
def cleanOutput = output.readLines().drop(1).join('\n').trim() def cleanOutput = output.readLines().drop(1).join('\n').trim()
echo "EDT output for ${projectName}: '${cleanOutput}'" if (exitCode != 0) {
error "EDT export for ${projectName} failed with exit code ${exitCode}"
// Если есть какой-либо вывод после команды - считаем ошибкой
if (cleanOutput) {
error "EDT export for ${projectName} produced output (likely errors): ${cleanOutput}"
} else {
echo "✓ ${projectName} build completed silently (success)"
} }
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") runEdtExport(env.EDT_RU, "./src/ru/OPI", "./build/OPI_RU", "RU")