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

add logging in findDbgs

This commit is contained in:
Dima
2024-12-12 16:50:30 +03:00
parent bbd5238277
commit 408bc1e05b

View File

@@ -79,19 +79,24 @@ class CoverageUtils {
static String findDbgs(IStepExecutor steps, JobConfiguration config) { static String findDbgs(IStepExecutor steps, JobConfiguration config) {
String dbgsPath = config.coverageOptions.dbgsPath String dbgsPath = config.coverageOptions.dbgsPath
if (dbgsPath.isEmpty()) { if (!dbgsPath.isEmpty()) {
def osResourcePath = steps.libraryResource "dbgs.os" Logger.println("Using dbgsPath from config: $dbgsPath")
final osResultPath = "build/dbgs.os" return dbgsPath.strip()
steps.writeFile(osResultPath, osResourcePath, 'UTF-8')
dbgsPath = steps.cmd("oscript ${osResultPath} ${config.v8version}", false, true)
} }
def osResourcePath = steps.libraryResource "dbgs.os"
final osResultPath = "build/dbgs.os"
steps.writeFile(osResultPath, osResourcePath, 'UTF-8')
dbgsPath = steps.cmd("oscript ${osResultPath} ${config.v8version}", false, true)
dbgsPath = dbgsPath.strip()
if (dbgsPath.isEmpty()) { if (dbgsPath.isEmpty()) {
steps.error("Не удалось найти путь к dbgs") steps.error("Не удалось найти путь к dbgs")
} }
return dbgsPath.strip() Logger.println("Found dbgs: ${dbgsPath}")
return dbgsPath
} }