From 5d8f71069bcb8a52492e67911202c7808418a94d Mon Sep 17 00:00:00 2001 From: Dima Ovcharenko Date: Wed, 11 Dec 2024 16:56:16 +0300 Subject: [PATCH] fix crlf --- src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy b/src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy index 4239403c..f99376af 100644 --- a/src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy +++ b/src/ru/pulsar/jenkins/library/utils/CoverageUtils.groovy @@ -20,7 +20,7 @@ class CoverageUtils { } 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').toList() + return pids.split('\r?\n').toList() } static CoverageContext prepareContext(JobConfiguration config, StepCoverageOptions options) {