From 49fe3ea22abbe323c0e9268abb6755a7e0750914 Mon Sep 17 00:00:00 2001 From: Dima Date: Fri, 30 Aug 2024 19:47:41 +0300 Subject: [PATCH] fix edt srcDir --- .../jenkins/library/steps/ResultsTransformer.groovy | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy b/src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy index fc6c6fc1..68c4ee5a 100644 --- a/src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy +++ b/src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy @@ -8,6 +8,8 @@ import ru.pulsar.jenkins.library.ioc.ContextRegistry import ru.pulsar.jenkins.library.utils.FileUtils import ru.pulsar.jenkins.library.utils.Logger +import java.nio.file.Paths + class ResultsTransformer implements Serializable { public static final String RESULT_STASH = 'edt-issues' @@ -36,7 +38,13 @@ class ResultsTransformer implements Serializable { ResultsTransformerType transformerType = config.resultsTransformOptions.transformer def edtValidateFile = "$env.WORKSPACE/$EdtValidate.RESULT_FILE" - def srcDir = FileUtils.getFilePath("$env.WORKSPACE/$config.srcDir") + def srcDir + if (config.sourceFormat == SourceFormat.DESIGNER) { + srcDir = FileUtils.getFilePath("$env.WORKSPACE/$config.srcDir") + } else { + def src = Paths.get(config.srcDir, "src") + srcDir = FileUtils.getFilePath("$env.WORKSPACE/$src") + } if (transformerType == ResultsTransformerType.STEBI) {