From 28e38baf831fff963a9cbfeb59fa6dc320966508 Mon Sep 17 00:00:00 2001 From: Dima Date: Mon, 16 Dec 2024 13:35:03 +0300 Subject: [PATCH] fix stop --- src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy b/src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy index a1a34ce..d1a6b80 100644 --- a/src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy +++ b/src/ru/pulsar/jenkins/library/steps/WithCoverage.groovy @@ -38,14 +38,14 @@ class WithCoverage implements Serializable { body() + CoverageUtils.stopCoverage(steps, config, context) + steps.stash(stage.getCoverageStashName(), stage.getCoverageStashPath(), true) } catch (Exception e) { throw new Exception("При выполнении блока произошла ошибка: ${e}") } finally { - CoverageUtils.stopCoverage(steps, config, context) - String pidsFilePath = "build/${stage.getStageSlug()}-pids" def pids = ""