Skip to content

Commit

Permalink
Фикс грязного хака
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovEV committed Mar 14, 2024
1 parent 2200c8d commit 569eba5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class GetExtensions implements Serializable {
}
extractConvertedExtensions(sourceDirName, steps)

String pathToExtensionDir = "$env.WORKSPACE/${EXTENSIONS_OUT_DIR}/"
FilePath localPathToExtensionDir = FileUtils.getFilePath(pathToExtensionDir)
localPathToExtensionDir.mkdirs()

config.initInfoBaseOptions.extensions.each {
if (it.initMethod == InitExtensionMethod.SOURCE) {
Logger.println("Сборка расширения ${it.name} из исходников")
Expand All @@ -57,9 +61,6 @@ class GetExtensions implements Serializable {
}

private void buildExtension(Extension extension, String srcDir, String vrunnerPath, IStepExecutor steps) {
// ТУТ ГРЯЗНЫЙ ХАК
VRunner.exec("mkdir -p $EXTENSIONS_OUT_DIR")
// ТУТ КОНЕЦ ГРЯЗНОГО ХАКА

def compileExtCommand = "$vrunnerPath compileexttocfe --src ${srcDir} --out $EXTENSIONS_OUT_DIR/${extension.name}.cfe"
List<String> logosConfig = ["LOGOS_CONFIG=$config.logosConfig"]
Expand Down

0 comments on commit 569eba5

Please sign in to comment.