1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-08-25 20:09:25 +02:00

Fix extension archiving when no extensions configured

Co-authored-by: nixel2007 <1132840+nixel2007@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-09 10:00:52 +00:00
committed by Nikita Fedkin (Rebase PR Action)
parent 1b0ba5d9fe
commit 3d3060a9a7
2 changed files with 11 additions and 4 deletions

View File

@@ -45,9 +45,11 @@ class EdtToDesignerFormatTransformation implements Serializable {
steps.zip(CONFIGURATION_DIR, CONFIGURATION_ZIP)
steps.stash(CONFIGURATION_ZIP_STASH, CONFIGURATION_ZIP)
engine.edtToDesignerTransformExtensions(steps, config)
steps.zip(EXTENSION_DIR, EXTENSION_ZIP)
steps.stash(EXTENSION_ZIP_STASH, EXTENSION_ZIP)
if (config.needLoadExtensions()) {
engine.edtToDesignerTransformExtensions(steps, config)
steps.zip(EXTENSION_DIR, EXTENSION_ZIP)
steps.stash(EXTENSION_ZIP_STASH, EXTENSION_ZIP)
}
}

View File

@@ -27,6 +27,11 @@ class GetExtensions implements Serializable {
Logger.printLocation()
if (!config.needLoadExtensions()) {
Logger.println("Расширения не найдены в конфигурации. Сборка расширений пропущена.")
return
}
def env = steps.env()
steps.installLocalDependencies()
@@ -87,7 +92,7 @@ class GetExtensions implements Serializable {
}
private void extractConvertedExtensions(String sourceDirName, IStepExecutor steps) {
if (config.sourceFormat == SourceFormat.EDT) {
if (config.sourceFormat == SourceFormat.EDT && config.needLoadExtensions()) {
// unstash and unzip the edt to designer format transformation
steps.unstash(EdtToDesignerFormatTransformation.EXTENSION_ZIP_STASH)
steps.unzip(sourceDirName, EdtToDesignerFormatTransformation.EXTENSION_ZIP)