Skip to content

Commit

Permalink
fix edt srcDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Aug 30, 2024
1 parent 571b37b commit 49fe3ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {

Expand Down

0 comments on commit 49fe3ea

Please sign in to comment.