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

revert ^^

This commit is contained in:
Dima
2024-12-11 19:18:12 +03:00
parent ce26f4139e
commit 7f4b7fae69

View File

@@ -18,7 +18,7 @@ class CoverageUtils {
if (steps.isUnix()) {
pids = steps.sh("ps -aux | grep '$name' | awk '{print \$2}'", false, true, 'UTF-8')
} else {
pids = steps.bat("chcp 65001 > nul \nfor /f \"tokens=2\" %%a in (\"tasklist ^^| findstr $name\") do @echo %%a", false, true, 'UTF-8')
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('\r?\n').toList()
}