1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

find dbgs through file

This commit is contained in:
Dima
2024-12-12 17:14:44 +03:00
parent 408bc1e05b
commit b44f4c67e3

View File

@@ -84,12 +84,14 @@ class CoverageUtils {
return dbgsPath.strip() return dbgsPath.strip()
} }
def osResourcePath = steps.libraryResource "dbgs.os" def dbgsFindScript = steps.libraryResource("dbgs.os")
final osResultPath = "build/dbgs.os" final dbgsFindScriptPath = "build/dbgs.os"
steps.writeFile(osResultPath, osResourcePath, 'UTF-8') final dbgsPathResult = "build/dbgsPath"
steps.writeFile(dbgsFindScriptPath, dbgsFindScript, 'UTF-8')
dbgsPath = steps.cmd("oscript ${osResultPath} ${config.v8version}", false, true) steps.cmd("oscript ${dbgsFindScriptPath} ${config.v8version} > ${dbgsPathResult}", false, false)
dbgsPath = dbgsPath.strip()
dbgsPath = steps.readFile(dbgsPathResult).strip()
if (dbgsPath.isEmpty()) { if (dbgsPath.isEmpty()) {
steps.error("Не удалось найти путь к dbgs") steps.error("Не удалось найти путь к dbgs")