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

diagnostic message and fixes

This commit is contained in:
Dima
2024-09-02 18:05:02 +03:00
parent 3cbc4046c5
commit 8c1a119f22

View File

@@ -86,8 +86,13 @@ class Yaxunit implements Serializable {
def newDbgsPids = getPIDs("dbgs")
def newCoverage41CPids = getPIDs("Coverage41C")
env.YAXUNIT_DBGS_PIDS = (newDbgsPids - currentDbgsPids).join(" ")
env.YAXUNIT_COVERAGE41C_PIDS = (newCoverage41CPids - currentCoverage41CPids).join(" ")
newDbgsPids.removeAll(currentDbgsPids)
newCoverage41CPids.removeAll(currentCoverage41CPids)
env.YAXUNIT_DBGS_PIDS = newDbgsPids.join(" ")
steps.echo("YAXUNIT_DBGS_PIDS = $env.YAXUNIT_DBGS_PIDS")
env.YAXUNIT_COVERAGE41C_PIDS = newCoverage41CPids.join(" ")
steps.echo("YAXUNIT_COVERAGE41C_PIDS = $env.YAXUNIT_COVERAGE41C_PIDS")
}
@@ -137,6 +142,6 @@ class Yaxunit implements Serializable {
} else {
pids = steps.bat("chcp 65001 > nul \nfor /f \"tokens=2\" %a in ('tasklist ^| findstr $name') do @echo %a", false, true, 'UTF-8')
}
return pids.split('\n').collect{it as String}
return pids.split('\n')
}
}