Skip to content

Commit

Permalink
fix bat
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di authored Dec 11, 2024
1 parent 24231f9 commit 49c1f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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('\n').toList()
}
Expand Down

0 comments on commit 49c1f78

Please sign in to comment.