Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Jul 28, 2024
1 parent accc8e8 commit dd5f568
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DesignerToEdtFormatTransformation implements Serializable {
def workspaceDir = FileUtils.getFilePath("$env.WORKSPACE/$WORKSPACE")
def srcDir = config.srcDir
def configurationRoot = FileUtils.getFilePath("$env.WORKSPACE/$srcDir")
def projectName = config.srcDir.split(File.separator).last()
def projectName = configurationRoot.getName()
def edtVersionForRing = EDT.ringModule(config)

steps.deleteDir(workspaceDir)
Expand Down
5 changes: 4 additions & 1 deletion src/ru/pulsar/jenkins/library/steps/EdtValidate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ class EdtValidate implements Serializable {
steps.unstash(DesignerToEdtFormatTransformation.WORKSPACE_ZIP_STASH)
steps.unzip(DesignerToEdtFormatTransformation.WORKSPACE, DesignerToEdtFormatTransformation.WORKSPACE_ZIP)

def projectName = config.srcDir.split(File.separator).last()
def srcDir = config.srcDir
def configurationRoot = FileUtils.getFilePath("$env.WORKSPACE/$srcDir")

def projectName = configurationRoot.getName()

projectList = "--project-name-list $projectName"
} else {
Expand Down
7 changes: 4 additions & 3 deletions src/ru/pulsar/jenkins/library/steps/ResultsTransformer.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ class ResultsTransformer implements Serializable {

}

def splitDir = config.srcDir.split(File.separator)
def projectName = splitDir.last()
def srcDirExceptLast = splitDir.dropRight(1).join(File.separator)
srcDir = FileUtils.getFilePath("$env.WORKSPACE/$config.srcDir")

def projectName = srcDir.getName()
def srcDirExceptLast = srcDir.getParent()

steps.cmd("edt-ripper parse $edtValidateFile $srcDirExceptLast $projectName $env.WORKSPACE/$RESULT_FILE")

Expand Down

0 comments on commit dd5f568

Please sign in to comment.