Skip to content

Commit

Permalink
fix projectName
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Jul 27, 2024
1 parent cf890d0 commit 17b6066
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/ru/pulsar/jenkins/library/steps/EdtValidate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class EdtValidate implements Serializable {
public static final String RESULT_STASH = 'edt-validate'
public static final String RESULT_FILE = 'build/out/edt-validate.out'

private final JobConfiguration config;
private final JobConfiguration config

EdtValidate(JobConfiguration config) {
this.config = config
Expand All @@ -29,16 +29,18 @@ class EdtValidate implements Serializable {
return
}

def env = steps.env();
def env = steps.env()

String workspaceLocation = "$env.WORKSPACE/$DesignerToEdtFormatTransformation.WORKSPACE"
String projectList;
String projectList

if (config.sourceFormat == SourceFormat.DESIGNER) {
steps.unstash(DesignerToEdtFormatTransformation.WORKSPACE_ZIP_STASH)
steps.unzip(DesignerToEdtFormatTransformation.WORKSPACE, DesignerToEdtFormatTransformation.WORKSPACE_ZIP)

projectList = "--project-name-list $DesignerToEdtFormatTransformation.PROJECT_NAME"
def projectName = config.srcDir.split(File.separator).last()

projectList = "--project-name-list $projectName"
} else {
def srcDir = config.srcDir
def projectDir = FileUtils.getFilePath("$env.WORKSPACE/$srcDir")
Expand Down

0 comments on commit 17b6066

Please sign in to comment.