You've already forked jenkins-lib
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:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user