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 = ""